clippy::double-must-use emitted for #[must_use] on async fn #10486
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
As of
1.67
(Pull Request), the#[must_use]
hint is applied to theOutput
of aFuture
when use on anasync fn
. With this change clippy now reports a false positivedouble-must-use
in the context ofasync fn
s.Lint Name
double-must-use
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: