Clippy fails to report .values()
over .iter().map(|(_, v)| v)
through .as_ref()
#14595
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Clippy appears to fail to suggest
iter_kv_map
when going through a reference.Lint Name
iter_kv_map
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Nothing, no lint.
Version
The text was updated successfully, but these errors were encountered: