mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -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:
parent
d8447cff36
commit
204b699be4
1 changed files with 2 additions and 2 deletions
|
@ -493,8 +493,8 @@ impl ModuleRegistry {
|
||||||
label,
|
label,
|
||||||
kind,
|
kind,
|
||||||
detail,
|
detail,
|
||||||
filter_text,
|
|
||||||
sort_text,
|
sort_text,
|
||||||
|
filter_text,
|
||||||
text_edit,
|
text_edit,
|
||||||
command,
|
command,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
@ -958,7 +958,7 @@ mod tests {
|
||||||
let actual = parse_replacement_variables(
|
let actual = parse_replacement_variables(
|
||||||
"https://deno.land/_vsc1/modules/${module}/v/${{version}}",
|
"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(&"module".to_owned()));
|
||||||
assert!(actual.contains(&"version".to_owned()));
|
assert!(actual.contains(&"version".to_owned()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue