diff options
| author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-11-17 22:59:10 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-18 02:59:10 +0100 |
| commit | 238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch) | |
| tree | f8fa04e39baecb5460076c1329ca38ae31f440b6 /cli/lsp | |
| parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) | |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'cli/lsp')
| -rw-r--r-- | cli/lsp/completions.rs | 2 | ||||
| -rw-r--r-- | cli/lsp/path_to_regex.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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 \"{}\"", |
