|
1 | 1 | error: unneeded unit return type
|
2 |
| - --> $DIR/unused_unit.rs:28:59 |
| 2 | + --> $DIR/unused_unit.rs:27:59 |
3 | 3 | |
|
4 |
| -28 | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> |
| 4 | +27 | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> |
5 | 5 | | ___________________________________________________________^
|
6 |
| -29 | | () |
| 6 | +28 | | () |
7 | 7 | | |__________^ help: remove the `-> ()`
|
8 | 8 | |
|
9 | 9 | note: lint level defined here
|
10 |
| - --> $DIR/unused_unit.rs:21:9 |
| 10 | + --> $DIR/unused_unit.rs:20:9 |
11 | 11 | |
|
12 |
| -21 | #![deny(clippy::unused_unit)] |
| 12 | +20 | #![deny(clippy::unused_unit)] |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^
|
14 | 14 |
|
15 | 15 | error: unneeded unit return type
|
16 |
| - --> $DIR/unused_unit.rs:37:19 |
| 16 | + --> $DIR/unused_unit.rs:36:19 |
17 | 17 | |
|
18 |
| -37 | fn into(self) -> () { |
| 18 | +36 | fn into(self) -> () { |
19 | 19 | | ^^^^^ help: remove the `-> ()`
|
20 | 20 |
|
21 | 21 | error: unneeded unit expression
|
22 |
| - --> $DIR/unused_unit.rs:38:9 |
| 22 | + --> $DIR/unused_unit.rs:37:9 |
23 | 23 | |
|
24 |
| -38 | () |
| 24 | +37 | () |
25 | 25 | | ^^ help: remove the final `()`
|
26 | 26 |
|
27 | 27 | error: unneeded unit return type
|
28 |
| - --> $DIR/unused_unit.rs:42:18 |
| 28 | + --> $DIR/unused_unit.rs:41:18 |
29 | 29 | |
|
30 |
| -42 | fn return_unit() -> () { () } |
| 30 | +41 | fn return_unit() -> () { () } |
31 | 31 | | ^^^^^ help: remove the `-> ()`
|
32 | 32 |
|
33 | 33 | error: unneeded unit expression
|
34 |
| - --> $DIR/unused_unit.rs:42:26 |
| 34 | + --> $DIR/unused_unit.rs:41:26 |
35 | 35 | |
|
36 |
| -42 | fn return_unit() -> () { () } |
| 36 | +41 | fn return_unit() -> () { () } |
37 | 37 | | ^^ help: remove the final `()`
|
38 | 38 |
|
39 | 39 | error: unneeded `()`
|
40 |
| - --> $DIR/unused_unit.rs:49:14 |
| 40 | + --> $DIR/unused_unit.rs:48:14 |
41 | 41 | |
|
42 |
| -49 | break(); |
| 42 | +48 | break(); |
43 | 43 | | ^^ help: remove the `()`
|
44 | 44 |
|
45 | 45 | error: unneeded `()`
|
46 |
| - --> $DIR/unused_unit.rs:51:11 |
| 46 | + --> $DIR/unused_unit.rs:50:11 |
47 | 47 | |
|
48 |
| -51 | return(); |
| 48 | +50 | return(); |
49 | 49 | | ^^ help: remove the `()`
|
50 | 50 |
|
51 | 51 | error: aborting due to 7 previous errors
|
|
0 commit comments