diff options
author | Mathias Lafeldt <mathias.lafeldt@gmail.com> | 2022-09-26 21:52:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 21:52:16 +0200 |
commit | 4b01ef5c23973406c44e1178ad11afb779f5c5df (patch) | |
tree | af6585554a28ded70f090d146f9692ee47808fb4 /cli/lsp/analysis.rs | |
parent | c7dd842f84268985e8701c67a9ea2607c13c9ae1 (diff) |
chore: use Rust 1.64.0 (#16035)
Diffstat (limited to 'cli/lsp/analysis.rs')
-rw-r--r-- | cli/lsp/analysis.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs index 250886283..c4b9f0a86 100644 --- a/cli/lsp/analysis.rs +++ b/cli/lsp/analysis.rs @@ -30,7 +30,7 @@ use tower_lsp::lsp_types::Range; /// fixes we treat them the same. static FIX_ALL_ERROR_CODES: Lazy<HashMap<&'static str, &'static str>> = Lazy::new(|| { - (&[("2339", "2339"), ("2345", "2339")]) + ([("2339", "2339"), ("2345", "2339")]) .iter() .cloned() .collect() @@ -40,7 +40,7 @@ static FIX_ALL_ERROR_CODES: Lazy<HashMap<&'static str, &'static str>> = /// multiple fixes available. static PREFERRED_FIXES: Lazy<HashMap<&'static str, (u32, bool)>> = Lazy::new(|| { - (&[ + ([ ("annotateWithTypeFromJSDoc", (1, false)), ("constructorForDerivedNeedSuperCall", (1, false)), ("extendsInterfaceBecomesImplements", (1, false)), @@ -54,9 +54,9 @@ static PREFERRED_FIXES: Lazy<HashMap<&'static str, (u32, bool)>> = ("addMissingAwait", (1, false)), ("fixImport", (0, true)), ]) - .iter() - .cloned() - .collect() + .iter() + .cloned() + .collect() }); static IMPORT_SPECIFIER_RE: Lazy<Regex> = |