Skip to content

Commit

Permalink
Also rename the lint in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed May 16, 2019
1 parent ce63f3a commit 08d2a0d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/ui/eta.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)]
#![warn(
clippy::redundant_closure,
clippy::redundant_closures_for_method_calls,
clippy::redundant_closure_for_method_calls,
clippy::needless_borrow
)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/eta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)]
#![warn(
clippy::redundant_closure,
clippy::redundant_closures_for_method_calls,
clippy::redundant_closure_for_method_calls,
clippy::needless_borrow
)]

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/eta.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/map_clone.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/map_clone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 08d2a0d

Please sign in to comment.