Also rename the lint in test files

This commit is contained in:
flip1995 2019-05-16 20:18:07 +02:00
parent ce63f3ae4d
commit 08d2a0d6b2
No known key found for this signature in database
GPG Key ID: 693086869D506637
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@
)]
#![warn(
clippy::redundant_closure,
clippy::redundant_closures_for_method_calls,
clippy::redundant_closure_for_method_calls,
clippy::needless_borrow
)]

View File

@ -11,7 +11,7 @@
)]
#![warn(
clippy::redundant_closure,
clippy::redundant_closures_for_method_calls,
clippy::redundant_closure_for_method_calls,
clippy::needless_borrow
)]

View 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

View 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();

View 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();