1
1
error: unneeded unit return type
2
- --> $DIR/unused_unit.rs:19:28
2
+ --> $DIR/unused_unit.rs:19:58
3
3
|
4
4
LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
5
- | ^^^^^^ help: remove the `-> ()`
5
+ | ^^^^^^ help: remove the `-> ()`
6
6
|
7
7
note: the lint level is defined here
8
8
--> $DIR/unused_unit.rs:12:9
@@ -11,16 +11,16 @@ LL | #![deny(clippy::unused_unit)]
11
11
| ^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: unneeded unit return type
14
- --> $DIR/unused_unit.rs:20:18
14
+ --> $DIR/unused_unit.rs:19:28
15
15
|
16
- LL | where G : Fn() -> () {
17
- | ^^^^^^ help: remove the `-> ()`
16
+ LL | pub fn get_unit<F : Fn() -> (), G>(&self, f: F, _g: G) -> ()
17
+ | ^^^^^^ help: remove the `-> ()`
18
18
19
19
error: unneeded unit return type
20
- --> $DIR/unused_unit.rs:19:58
20
+ --> $DIR/unused_unit.rs:20:18
21
21
|
22
- LL | pub fn get_unit<F : Fn() -> (), G>(&self, f: F, _g: G) -> ()
23
- | ^^^^^^ help: remove the `-> ()`
22
+ LL | where G : Fn() -> () {
23
+ | ^^^^^^ help: remove the `-> ()`
24
24
25
25
error: unneeded unit return type
26
26
--> $DIR/unused_unit.rs:21:26
0 commit comments