Open
Description
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:
#![feature(slice_group_by)]
#![warn(clippy::pedantic)]
fn main() {
let data = [true, false, true, false, true, true, false, false, true];
let _gs1 = data.group_by(|a, b| a == b);
}
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
rustc 1.72.0-nightly (46514218f 2023-06-20)
binary: rustc
commit-hash: 46514218f6f31ad3a1510ecc32af47e9e486c27d
commit-date: 2023-06-20
host: x86_64-pc-windows-gnu
release: 1.72.0-nightly
LLVM version: 16.0.5