about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/eta.fixed2
-rw-r--r--tests/ui/eta.rs2
-rw-r--r--tests/ui/eta.stderr2
-rw-r--r--tests/ui/map_clone.fixed2
-rw-r--r--tests/ui/map_clone.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/eta.fixed b/tests/ui/eta.fixed
index e829f68487f..a3e57956f35 100644
--- a/tests/ui/eta.fixed
+++ b/tests/ui/eta.fixed
@@ -11,7 +11,7 @@
 )]
 #![warn(
     clippy::redundant_closure,
-    clippy::redundant_closures_for_method_calls,
+    clippy::redundant_closure_for_method_calls,
     clippy::needless_borrow
 )]
 
diff --git a/tests/ui/eta.rs b/tests/ui/eta.rs
index 273706aaf66..58adf21b1d5 100644
--- a/tests/ui/eta.rs
+++ b/tests/ui/eta.rs
@@ -11,7 +11,7 @@
 )]
 #![warn(
     clippy::redundant_closure,
-    clippy::redundant_closures_for_method_calls,
+    clippy::redundant_closure_for_method_calls,
     clippy::needless_borrow
 )]
 
diff --git a/tests/ui/eta.stderr b/tests/ui/eta.stderr
index d8c6e3cdba4..ff402a1850e 100644
--- a/tests/ui/eta.stderr
+++ b/tests/ui/eta.stderr
@@ -38,7 +38,7 @@ error: redundant closure found
 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
diff --git a/tests/ui/map_clone.fixed b/tests/ui/map_clone.fixed
index fc25ab13ea3..c8b9bc04944 100644
--- a/tests/ui/map_clone.fixed
+++ b/tests/ui/map_clone.fixed
@@ -3,7 +3,7 @@
 #![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();
diff --git a/tests/ui/map_clone.rs b/tests/ui/map_clone.rs
index 2826f10f478..5f216823eb4 100644
--- a/tests/ui/map_clone.rs
+++ b/tests/ui/map_clone.rs
@@ -3,7 +3,7 @@
 #![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();