summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-18 07:29:37 +0200
committerGitHub <noreply@github.com>2021-04-18 15:29:37 +1000
commit204b699be4cf88e216572d77ad4cced9ab4748bc (patch)
treea32c49e621db08a9d348e6477f3b44e0959d88bc
parentd8447cff363f099ef9f0bda9d3fb3b0474a48d6f (diff)
chore(cli/lsp): fix 2 lint errors (#10228)
1. error: called `.iter().count()` on a `Vec` 2. error: inconsistent struct constructor
-rw-r--r--cli/lsp/registries.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs
index 8a9ac20c6..877f03be3 100644
--- a/cli/lsp/registries.rs
+++ b/cli/lsp/registries.rs
@@ -493,8 +493,8 @@ impl ModuleRegistry {
label,
kind,
detail,
- filter_text,
sort_text,
+ filter_text,
text_edit,
command,
..Default::default()
@@ -958,7 +958,7 @@ mod tests {
let actual = parse_replacement_variables(
"https://deno.land/_vsc1/modules/${module}/v/${{version}}",
);
- assert_eq!(actual.iter().count(), 2);
+ assert_eq!(actual.len(), 2);
assert!(actual.contains(&"module".to_owned()));
assert!(actual.contains(&"version".to_owned()));
}