chore: update rust to 1.58 (#3461)

* chore: update rust to 1.58

* fix: clippy

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
pull/24376/head
Edd Robinson 2022-01-13 21:12:46 +00:00 committed by GitHub
parent 957276faa1
commit d1816b662f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 12 deletions

View File

@ -350,14 +350,8 @@ mod tests {
// Random chunk IDs use UUID-format
let id_random = ChunkId::new();
let inner: Uuid = id_random.get();
assert_eq!(
format!("{:?}", id_random),
format!("ChunkId({})", inner.to_string())
);
assert_eq!(
format!("{}", id_random),
format!("ChunkId({})", inner.to_string())
);
assert_eq!(format!("{:?}", id_random), format!("ChunkId({})", inner));
assert_eq!(format!("{}", id_random), format!("ChunkId({})", inner));
// Deterministic IDs use integer format
let id_test = ChunkId::new_test(42);

View File

@ -201,7 +201,7 @@ pub mod tests {
let addr: SocketAddr = "127.0.0.1:0".parse()?;
let listener = tokio::net::TcpListener::bind(addr).await?;
let local_addr = listener.local_addr()?;
let local_addr = format!("http://{}", local_addr.to_string());
let local_addr = format!("http://{}", local_addr);
tokio::spawn(async move {
Server::builder()

View File

@ -2204,7 +2204,7 @@ mod test {
Column::Unsigned(_, IntegerEncoding::U64(_, _))
));
for (scalar, result) in cases.clone() {
for (scalar, result) in cases {
assert_eq!(col.might_contain_value(&Value::Scalar(scalar)), result);
}
@ -2217,7 +2217,7 @@ mod test {
(Scalar::F64(-100.0), false),
];
for (scalar, result) in cases.clone() {
for (scalar, result) in cases {
assert_eq!(col.might_contain_value(&Value::Scalar(scalar)), result);
}
}

View File

@ -1,3 +1,3 @@
[toolchain]
channel = "1.57"
channel = "1.58"
components = [ "rustfmt", "clippy" ]