from_iter_instead_of_collect / needless_collect interaction questionable #6533
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
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
L-nursery
Lint: Currently in the nursery group
clippy will suggest to use
.collect()
instead offrom_iter()
here but blindly replacing will not work because.collect()
will need some kind of type hint.Them again
does not trigger
clippy::needless_collect
(although it should!; neither does the first example) because we can iterate overdirectly.
The text was updated successfully, but these errors were encountered: