fn
that returns a future and contains a single async
block should be linted to use async fn
instead
#5503
Labels
A-lint
Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-suggestion
Lint: Improving, adding or fixing lint suggestions
T-async-await
Type: Issues related to async/await
Bounced over from rust-lang/rust#71391.
Something like
async fn
is strictly better.The text was updated successfully, but these errors were encountered: