lines_filter_map_ok should also warn for flatten #11686
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
When stumbling about the clippy warning
lines_filter_map_ok
, I tried a different solution by usingflatten()
. The clippy warning disappearsI tested the code with a directory (as described in the lint) and it still loops forever.
Lint Name
lines_filter_map_ok
Reproducer
I tried this code snippet:
I expected to see this happen:
Since flatten() is more or less the same as flat_map, it should warn as well
Instead, this happened:
No warnings
Version
The text was updated successfully, but these errors were encountered: