chore: Upgrade to Rust 1.78.0 (#24953)
This fixes new lints that have come up in the latest edition of clippy and moves .cargo/config to .cargo/config.toml as the previous filename is now deprecated.pull/24954/head
parent
43368981c7
commit
7138019636
|
|
@ -890,8 +890,6 @@ pub(crate) async fn route_request<W: WriteBuffer, Q: QueryExecutor, T: TimeProvi
|
|||
mut req: Request<Body>,
|
||||
) -> Result<Response<Body>, Infallible>
|
||||
where
|
||||
W: WriteBuffer,
|
||||
Q: QueryExecutor,
|
||||
Error: From<<Q as QueryExecutor>::Error>,
|
||||
{
|
||||
if let Err(e) = http_server.authorize_request(&mut req).await {
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ impl QueryResponseStream {
|
|||
let mut columns = vec!["".to_string(); self.column_map.len()];
|
||||
self.column_map
|
||||
.iter()
|
||||
.for_each(|(k, i)| columns[*i] = k.to_owned());
|
||||
.for_each(|(k, i)| k.clone_into(&mut columns[*i]));
|
||||
columns
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ impl InnerCatalog {
|
|||
|
||||
#[cfg(test)]
|
||||
pub fn db_exists(&self, db_name: &str) -> bool {
|
||||
self.databases.get(db_name).is_some()
|
||||
self.databases.contains_key(db_name)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
use crate::SegmentId;
|
||||
use chrono::prelude::*;
|
||||
use object_store::path::Path as ObjPath;
|
||||
use std::fmt;
|
||||
use std::ops::Deref;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
|
|
@ -109,9 +110,9 @@ impl SegmentWalFilePath {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToString for SegmentWalFilePath {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string_lossy().into_owned()
|
||||
impl fmt::Display for SegmentWalFilePath {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
write!(f, "{}", self.0.to_string_lossy())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
[toolchain]
|
||||
channel = "1.77.0"
|
||||
channel = "1.78.0"
|
||||
components = ["rustfmt", "clippy", "rust-analyzer"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue