From 08d2a0d6b20bc725305d0462ccbc9b2839820489 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Thu, 16 May 2019 20:18:07 +0200 Subject: [PATCH] Also rename the lint in test files --- tests/ui/eta.fixed | 2 +- tests/ui/eta.rs | 2 +- tests/ui/eta.stderr | 2 +- tests/ui/map_clone.fixed | 2 +- tests/ui/map_clone.rs | 2 +- 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 = 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 = vec![5_i8; 6].iter().map(|x| *x).collect();