summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author林炳权 <695601626@qq.com>2023-11-17 23:06:28 +0800
committerGitHub <noreply@github.com>2023-11-17 08:06:28 -0700
commit9a1c697045cee8675ff07e3a0abde1e30fea5362 (patch)
tree6122f75861d4618b0eed257211f43eda95b12e76
parent29011d592968d4d645b909ee28d5fffe0473f285 (diff)
chore: update to Rust 1.74 (#21210)
Update to Rust 1.74
-rw-r--r--cli/lsp/config.rs2
-rw-r--r--runtime/build.rs1
-rw-r--r--rust-toolchain.toml2
3 files changed, 3 insertions, 2 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs
index ebcedb024..53d17df2c 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 f77f3ed07..b38fd558b 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 b44c3df5f..9e137c1e6 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"]