mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
23 lines
577 B
Text
23 lines
577 B
Text
error: unused `async` for function with no await statements
|
|
--> $DIR/unused_async.rs:6:1
|
|
|
|
|
LL | / async fn foo() -> i32 {
|
|
LL | | 4
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= help: consider removing the `async` from this function
|
|
= note: `-D clippy::unused-async` implied by `-D warnings`
|
|
|
|
error: unused `async` for function with no await statements
|
|
--> $DIR/unused_async.rs:17:5
|
|
|
|
|
LL | / async fn unused(&self) -> i32 {
|
|
LL | | 1
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= help: consider removing the `async` from this function
|
|
|
|
error: aborting due to 2 previous errors
|
|
|