11error: unneeded unit return type
2- --> $DIR/unused_unit.rs:19:28
2+ --> $DIR/unused_unit.rs:19:58
33 |
44LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
5- | ^^^^^^ help: remove the `-> ()`
5+ | ^^^^^^ help: remove the `-> ()`
66 |
77note: the lint level is defined here
88 --> $DIR/unused_unit.rs:12:9
@@ -11,16 +11,16 @@ LL | #![deny(clippy::unused_unit)]
1111 | ^^^^^^^^^^^^^^^^^^^
1212
1313error: unneeded unit return type
14- --> $DIR/unused_unit.rs:20:18
14+ --> $DIR/unused_unit.rs:19:28
1515 |
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 `-> ()`
1818
1919error: unneeded unit return type
20- --> $DIR/unused_unit.rs:19:58
20+ --> $DIR/unused_unit.rs:20:18
2121 |
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 `-> ()`
2424
2525error: unneeded unit return type
2626 --> $DIR/unused_unit.rs:21:26
0 commit comments