From 9a1c697045cee8675ff07e3a0abde1e30fea5362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Fri, 17 Nov 2023 23:06:28 +0800 Subject: [PATCH] chore: update to Rust 1.74 (#21210) Update to Rust 1.74 --- cli/lsp/config.rs | 2 +- runtime/build.rs | 1 + rust-toolchain.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs index ebcedb0240..53d17df2c5 100644 --- a/cli/lsp/config.rs +++ b/cli/lsp/config.rs @@ -812,7 +812,7 @@ impl Config { pub fn new() -> Self { Self { client_capabilities: ClientCapabilities::default(), - /// Root provided by the initialization parameters. + // Root provided by the initialization parameters. settings: Default::default(), workspace_folders: vec![], maybe_config_file_info: None, diff --git a/runtime/build.rs b/runtime/build.rs index f77f3ed077..b38fd558ba 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -298,6 +298,7 @@ fn main() { let snapshot_slice = &[]; #[allow(clippy::needless_borrow)] #[allow(clippy::disallowed_methods)] + #[allow(clippy::needless_borrows_for_generic_args)] std::fs::write(&runtime_snapshot_path, snapshot_slice).unwrap(); } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b44c3df5f6..9e137c1e6f 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.73.0" +channel = "1.74.0" components = ["rustfmt", "clippy"]