-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
More redundant_closure_for_method_calls #11017
Copy link
Copy link
Open
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn't
Description
Activity
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: 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