)]
#![warn(
clippy::redundant_closure,
- clippy::redundant_closures_for_method_calls,
+ clippy::redundant_closure_for_method_calls,
clippy::needless_borrow
)]
)]
#![warn(
clippy::redundant_closure,
- clippy::redundant_closures_for_method_calls,
+ clippy::redundant_closure_for_method_calls,
clippy::needless_borrow
)]
LL | let e = Some(TestStruct { some_ref: &i }).map(|a| a.foo());
| ^^^^^^^^^^^ help: remove closure as shown: `TestStruct::foo`
|
- = note: `-D clippy::redundant-closures-for-method-calls` implied by `-D warnings`
+ = note: `-D clippy::redundant-closure-for-method-calls` implied by `-D warnings`
error: redundant closure found
--> $DIR/eta.rs:77:51
#![allow(clippy::iter_cloned_collect)]
#![allow(clippy::clone_on_copy)]
#![allow(clippy::missing_docs_in_private_items)]
-#![allow(clippy::redundant_closures_for_method_calls)]
+#![allow(clippy::redundant_closure_for_method_calls)]
fn main() {
let _: Vec<i8> = vec![5_i8; 6].iter().copied().collect();
#![allow(clippy::iter_cloned_collect)]
#![allow(clippy::clone_on_copy)]
#![allow(clippy::missing_docs_in_private_items)]
-#![allow(clippy::redundant_closures_for_method_calls)]
+#![allow(clippy::redundant_closure_for_method_calls)]
fn main() {
let _: Vec<i8> = vec![5_i8; 6].iter().map(|x| *x).collect();