unused async
for function with no await statements when function is used in contexts requiring async
#9695
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Functions with the
async
keyword get the following error, even when the functions must have async to be used in contexts that are async.Lint Name
unused_async
Reproducer
I tried this code:
I expected to see this happen:
No warnings.
Instead, this happened:
Version
The text was updated successfully, but these errors were encountered: