lint vec.clone().into_iter().stuff().collect()
to suggest vec.iter().stuff().cloned().collect()
#3302
Labels
A-lint
Area: New lints
L-complexity
Lint: Belongs in the complexity lint group
L-perf
Lint: Belongs in the perf lint group
Found the following code in the wild
Not sure what other things should be linted, but at least filter and filter_map after a clone+into_iter
The text was updated successfully, but these errors were encountered: