Prefer iterator.copied()
over iterator.cloned()
where possible
#3870
Labels
A-lint
Area: New lints
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
... and adjust our current
iterator.map(|x| *x)
lint to suggest.copied()
Requires rust-lang/rust#57127 to get merged first though.
The text was updated successfully, but these errors were encountered: