mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Bless clippy.
This commit is contained in:
parent
5cf2920ef3
commit
e4110cf633
1 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
error: unneeded unit return type
|
||||
--> $DIR/unused_unit.rs:19:28
|
||||
--> $DIR/unused_unit.rs:19:58
|
||||
|
|
||||
LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
|
||||
| ^^^^^^ help: remove the `-> ()`
|
||||
|
@ -11,15 +11,15 @@ LL | #![deny(clippy::unused_unit)]
|
|||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: unneeded unit return type
|
||||
--> $DIR/unused_unit.rs:20:18
|
||||
--> $DIR/unused_unit.rs:19:28
|
||||
|
|
||||
LL | where G: Fn() -> () {
|
||||
LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
|
||||
| ^^^^^^ help: remove the `-> ()`
|
||||
|
||||
error: unneeded unit return type
|
||||
--> $DIR/unused_unit.rs:19:58
|
||||
--> $DIR/unused_unit.rs:20:18
|
||||
|
|
||||
LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) -> ()
|
||||
LL | where G: Fn() -> () {
|
||||
| ^^^^^^ help: remove the `-> ()`
|
||||
|
||||
error: unneeded unit return type
|
||||
|
|
Loading…
Reference in a new issue