Skip to content

Commit

Permalink
Run fmt and update test
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Apr 8, 2020
1 parent 79d1521 commit 381f9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 1 addition & 6 deletions tests/ui/extra_unused_lifetimes.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#![allow(
unused,
dead_code,
clippy::needless_lifetimes,
clippy::needless_pass_by_value
)]
#![allow(unused, dead_code, clippy::needless_lifetimes, clippy::needless_pass_by_value)]
#![warn(clippy::extra_unused_lifetimes)]

fn empty() {}
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/extra_unused_lifetimes.stderr
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
error: this lifetime isn't used in the function definition
--> $DIR/extra_unused_lifetimes.rs:13:14
--> $DIR/extra_unused_lifetimes.rs:8:14
|
LL | fn unused_lt<'a>(x: u8) {}
| ^^
|
= note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`

error: this lifetime isn't used in the function definition
--> $DIR/extra_unused_lifetimes.rs:15:25
--> $DIR/extra_unused_lifetimes.rs:10:25
|
LL | fn unused_lt_transitive<'a, 'b: 'a>(x: &'b u8) {
| ^^

error: this lifetime isn't used in the function definition
--> $DIR/extra_unused_lifetimes.rs:40:10
--> $DIR/extra_unused_lifetimes.rs:35:10
|
LL | fn x<'a>(&self) {}
| ^^

error: this lifetime isn't used in the function definition
--> $DIR/extra_unused_lifetimes.rs:66:22
--> $DIR/extra_unused_lifetimes.rs:61:22
|
LL | fn unused_lt<'a>(x: u8) {}
| ^^
Expand Down

0 comments on commit 381f9cb

Please sign in to comment.