diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-01-15 01:10:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 07:10:12 +0100 |
commit | ad224f53c798e8417a63d98daeaf3cadc199666c (patch) | |
tree | f323be53d4f5b4289cd04296af1d35028dc23b15 /cli/lsp | |
parent | 903cb48fe94bbbb0c43f17cf51e84a5583ddb728 (diff) |
chore: upgrade to rust 1.58 (#13377)
Diffstat (limited to 'cli/lsp')
-rw-r--r-- | cli/lsp/completions.rs | 12 | ||||
-rw-r--r-- | cli/lsp/documents.rs | 4 |
2 files changed, 4 insertions, 12 deletions
diff --git a/cli/lsp/completions.rs b/cli/lsp/completions.rs index 51a3ffb88..00d0631b8 100644 --- a/cli/lsp/completions.rs +++ b/cli/lsp/completions.rs @@ -428,18 +428,10 @@ fn relative_specifier( } } if parts.is_empty() { - format!( - "./{}{}", - last_a, - specifier[Position::AfterPath..].to_string() - ) + format!("./{}{}", last_a, &specifier[Position::AfterPath..]) } else { parts.push(last_a); - format!( - "{}{}", - parts.join("/"), - specifier[Position::AfterPath..].to_string() - ) + format!("{}{}", parts.join("/"), &specifier[Position::AfterPath..]) } } else { specifier[Position::BeforePath..].into() diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index b0da53ef3..280b345c7 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -588,8 +588,8 @@ pub(crate) fn to_hover_text( "blob" => "_(a blob url)_".to_string(), _ => format!( "{}​{}", - specifier[..url::Position::AfterScheme].to_string(), - specifier[url::Position::AfterScheme..].to_string() + &specifier[..url::Position::AfterScheme], + &specifier[url::Position::AfterScheme..], ) .replace('@', "​@"), }, |