more clippy::perf fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user