single_match_else false positive #4952
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
T-async-await
Type: Issues related to async/await
Hi!
I'm getting a false positive with the
single_match_else
lint in anasync
function declaration. I'm not 100% sure where this is happening, since the function has some Rocket procedural attributes in it.First things first,
cargo clippy -V
:The code that is causing the issue is the following:
I get this error:
But this is a function header, so I cannot implement the proposed solution.
The text was updated successfully, but these errors were encountered: