]> git.lizzy.rs Git - rust.git/commitdiff
Also rename the lint in test files
authorflip1995 <hello@philkrones.com>
Thu, 16 May 2019 18:18:07 +0000 (20:18 +0200)
committerflip1995 <hello@philkrones.com>
Thu, 16 May 2019 18:18:07 +0000 (20:18 +0200)
tests/ui/eta.fixed
tests/ui/eta.rs
tests/ui/eta.stderr
tests/ui/map_clone.fixed
tests/ui/map_clone.rs

index e829f68487f82f96cca653bac8d0275735d757e6..a3e57956f35b4e5c8ba1b83bbaea7640a752bdd4 100644 (file)
@@ -11,7 +11,7 @@
 )]
 #![warn(
     clippy::redundant_closure,
-    clippy::redundant_closures_for_method_calls,
+    clippy::redundant_closure_for_method_calls,
     clippy::needless_borrow
 )]
 
index 273706aaf6631125e582b91cf2b320111e90aea7..58adf21b1d5ed78125627f2e18ceab9eae864522 100644 (file)
@@ -11,7 +11,7 @@
 )]
 #![warn(
     clippy::redundant_closure,
-    clippy::redundant_closures_for_method_calls,
+    clippy::redundant_closure_for_method_calls,
     clippy::needless_borrow
 )]
 
index d8c6e3cdba4092f46cb40def548ad7b8df434e75..ff402a1850ed868da94e81f27ab2dd74c7f48bb6 100644 (file)
@@ -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
index fc25ab13ea3297ce3e2b1e8d12e1694a9000c818..c8b9bc049440cfc2a36e8cbe3d21eec5913c17c4 100644 (file)
@@ -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();
index 2826f10f4789a2f89e6bd6b0ceb85fb2f878f2f7..5f216823eb4a959066f5a85fb298677844a2ab96 100644 (file)
@@ -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();