mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Auto merge of #6593 - k-nasa:refactor_clippy, r=dwijnand
into_iter() call is equivalent to .iter() and will not move the slice
This commit is contained in:
commit
eb96a36fe0
@ -16,7 +16,7 @@ fn get_available_targets<'a>(
|
||||
.flat_map(|pkg| {
|
||||
pkg.manifest()
|
||||
.targets()
|
||||
.into_iter()
|
||||
.iter()
|
||||
.filter(|target| filter_fn(target))
|
||||
})
|
||||
.collect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user