refactor(lsp): fewer clones (#17551)

This commit is contained in:
Geert-Jan Zwiers 2023-01-26 23:24:03 +01:00 committed by GitHub
parent 21065797f6
commit 7f38f30a5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 22 additions and 31 deletions

View file

@ -1528,7 +1528,7 @@ impl Inner {
.extend(refactor_info.to_code_actions(&specifier, &params.range));
}
all_actions.extend(
refactor::prune_invalid_actions(&refactor_actions, 5)
refactor::prune_invalid_actions(refactor_actions, 5)
.into_iter()
.map(CodeActionOrCommand::CodeAction),
);