FP: needless_collect
for HashMap
and BTreeMap
#7164
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name:
needless_collect
I tried this code:
I expected to see this happen: No lint triggered.
Instead, this happened:
Warning from clippy:
After applying suggestion from clippy, the results are different.
Before applying the suggestion: 1, after: 5.
playgroud link
Meta
clippy
: 0.1.53 (2021-05-03 716394d)rustc
: 1.54.0-nightly (2021-05-03 716394d)The text was updated successfully, but these errors were encountered: