False positive for needless_lifetimes (possibly due to async?) #4746
Labels
C-bug
Category: Clippy is not doing the correct thing
T-async-await
Type: Issues related to async/await
Output of
cargo clippy -V
:I have a method that looks like this:
Clippy flags the signature for needless lifetimes. However, replacing the
'a
lifteime with the anonymous'_
as suggested, results in a lifetime mismatch error, because the lifetime of the return value comes from the guard argument, not self. As far as I understand, lifetimes cannot be elided here.The text was updated successfully, but these errors were encountered: