redundant_async_block
not catching uses with nontrivial futures
#12732
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
The
redundant_async_block
lint fails to trigger on uses ofasync { EXPRESSION.await }
for seemingly anyEXPRESSION
other than a single variable.Lint Name
redundant_async_block
Reproducer
I tried this code:
I expected to see this happen: clippy should have warned about the redundant
async
block and recommended just writingtokio::spawn(ready(42))
instead.Instead, this happened: no warnings
Version
The text was updated successfully, but these errors were encountered: