summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-06-05 20:35:39 -0400
committerGitHub <noreply@github.com>2023-06-06 00:35:39 +0000
commit5c55f2b4fb9f386d5589e4cbd4c513ecb1bae50b (patch)
treeaeffd55113b13518b28116f3048aaff572e4cae5 /cli
parent8829a1d3620cab23f7ac724feeae60c9de6ebad2 (diff)
chore: upgrade to Rust 1.70.0 (#19345)
Co-authored-by: linbingquan <695601626@qq.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/lsp/capabilities.rs10
-rw-r--r--cli/tools/upgrade.rs2
2 files changed, 6 insertions, 6 deletions
diff --git a/cli/lsp/capabilities.rs b/cli/lsp/capabilities.rs
index e56aa6b87..355f7b6c5 100644
--- a/cli/lsp/capabilities.rs
+++ b/cli/lsp/capabilities.rs
@@ -1,10 +1,10 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-///!
-///! Provides information about what capabilities that are supported by the
-///! language server, which helps determine what messages are sent from the
-///! client.
-///!
+//!
+//! Provides information about what capabilities that are supported by the
+//! language server, which helps determine what messages are sent from the
+//! client.
+//!
use deno_core::serde_json::json;
use tower_lsp::lsp_types::*;
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs
index a6bc2975b..b371731c3 100644
--- a/cli/tools/upgrade.rs
+++ b/cli/tools/upgrade.rs
@@ -334,7 +334,7 @@ pub async fn upgrade(
};
let current_is_most_recent = if upgrade_flags.canary {
- let latest_hash = latest_version.clone();
+ let latest_hash = &latest_version;
crate::version::GIT_COMMIT_HASH == latest_hash
} else if !crate::version::is_canary() {
let current = Version::parse_standard(crate::version::deno()).unwrap();