1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 00:59:24 -05:00

chore(cli/lsp): fix 2 lint errors (#10228)

1. error: called `.iter().count()` on a `Vec`
2. error: inconsistent struct constructor
This commit is contained in:
Aaron O'Mullan 2021-04-18 07:29:37 +02:00 committed by GitHub
parent d8447cff36
commit 204b699be4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()));
}