more clippy::perf fixes
This commit is contained in:
parent
dec689432f
commit
6f4726541e
6 changed files with 11 additions and 19 deletions
|
@ -1393,7 +1393,7 @@ impl<'a> Resolver<'a> {
|
|||
|
||||
// If only some candidates are accessible, take just them
|
||||
if !candidates.iter().all(|v: &ImportSuggestion| !v.accessible) {
|
||||
candidates = candidates.into_iter().filter(|x| x.accessible).collect();
|
||||
candidates.retain(|x| x.accessible)
|
||||
}
|
||||
|
||||
candidates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue