More redundant_closure_for_method_calls #11017
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
Here I suggest one more example for the redundant_closure_for_method_calls.
Lint Name
redundant_closure_for_method_calls
Reproducer
I tried this code:
I expected to see a lint firing like:
note:
#[warn(clippy::redundant_closure_for_method_calls)]
implied by#[warn(clippy::pedantic)]
Instead, this happened:
Nothing spotted by clippy. I expected Clippy to suggest me to use:
data.group_by(bool::eq);
Version
The text was updated successfully, but these errors were encountered: