mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-17 18:28:40 +00:00
14 lines
340 B
Text
14 lines
340 B
Text
|
error: unnecessary `async` for function with no await statements
|
||
|
--> $DIR/unnecessary_async.rs:4:1
|
||
|
|
|
||
|
LL | / async fn foo() -> i32 {
|
||
|
LL | | 4
|
||
|
LL | | }
|
||
|
| |_^
|
||
|
|
|
||
|
= note: `-D clippy::unnecessary-async` implied by `-D warnings`
|
||
|
= help: consider removing the `async` from this function
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|