From 238590aa9fdfe2aac04bb96abad2f2d2feb3101a Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 17 Nov 2022 22:59:10 -0300 Subject: chore: use Rust 1.65.0 (#16688) --- cli/lsp/completions.rs | 2 +- cli/lsp/path_to_regex.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/lsp') diff --git a/cli/lsp/completions.rs b/cli/lsp/completions.rs index 5eb42d3b0..b223c71a2 100644 --- a/cli/lsp/completions.rs +++ b/cli/lsp/completions.rs @@ -469,7 +469,7 @@ fn get_workspace_completions( specifier_strings .into_iter() .filter_map(|label| { - if label.starts_with(¤t) { + if label.starts_with(current) { let detail = Some( if label.starts_with("http:") || label.starts_with("https:") { "(remote)".to_string() diff --git a/cli/lsp/path_to_regex.rs b/cli/lsp/path_to_regex.rs index 937136ce3..9ccbb2c1f 100644 --- a/cli/lsp/path_to_regex.rs +++ b/cli/lsp/path_to_regex.rs @@ -877,7 +877,7 @@ mod tests { assert!(result.is_ok(), "Could not parse path: \"{}\"", path); let (re, _) = result.unwrap(); for (fixture, expected) in fixtures { - let result = re.find(*fixture); + let result = re.find(fixture); assert!( result.is_ok(), "Find failure for path \"{}\" and fixture \"{}\"", -- cgit v1.2.3