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:
parent
d8447cff36
commit
204b699be4
1 changed files with 2 additions and 2 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue