Generalize iter_cloned_collect to .copied() #6703
Labels
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
Uh oh!
There was an error while loading. Please reload this page.
I ran Clippy on some previously unlinted code and found that it reported that
could be replaced with
some_slice.to_vec()
, but, did not report cases where I had happened to writeinstead. Perhaps it would make sense to generalize
iter_cloned_collect
to also detect uses of.copied()
, or add a corresponding lint if they should be kept separate for some reason.The text was updated successfully, but these errors were encountered: