Skip to content

Commit 381f9cb

Browse files
committed
Run fmt and update test
1 parent 79d1521 commit 381f9cb

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

tests/ui/extra_unused_lifetimes.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
#![allow(
2-
unused,
3-
dead_code,
4-
clippy::needless_lifetimes,
5-
clippy::needless_pass_by_value
6-
)]
1+
#![allow(unused, dead_code, clippy::needless_lifetimes, clippy::needless_pass_by_value)]
72
#![warn(clippy::extra_unused_lifetimes)]
83

94
fn empty() {}

tests/ui/extra_unused_lifetimes.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
error: this lifetime isn't used in the function definition
2-
--> $DIR/extra_unused_lifetimes.rs:13:14
2+
--> $DIR/extra_unused_lifetimes.rs:8:14
33
|
44
LL | fn unused_lt<'a>(x: u8) {}
55
| ^^
66
|
77
= note: `-D clippy::extra-unused-lifetimes` implied by `-D warnings`
88

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

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

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

0 commit comments

Comments
 (0)