You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
warning: passing a unit value to a function
--> tests/panic.rs:134:44
|
134 | future::block_on(future::or(&mut task, future::ready(Default::default())));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(clippy::unit_arg)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
help: move the expression in front of the call and replace it with the unit literal `()`
|
134 ~ future::block_on(future::or(&mut task, {
135 + Default::default();
136 + future::ready(())
137 ~ }));
|
warning: passing a unit value to a function
--> tests/panic.rs:200:52
|
200 | future::block_on(future::or(&mut task, future::ready(Default::default())));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
help: move the expression in front of the call and replace it with the unit literal `()`
|
200 ~ future::block_on(future::or(&mut task, {
201 + Default::default();
202 + future::ready(())
203 ~ }));
|
```
0 commit comments