Rollup merge of #101391 - matthiaskrgr:perf0309, r=oli-obk
more clippy::perf fixes
This commit is contained in:
commit
e4534fe6fe
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