clippy::unused_async and axum async debug_handler #2836
Unanswered
michaldorsett
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Case in point: status.rs: A handler must be declared
async
, but there are noasync
actions in the handler, therefore theclippy::unused_async
is unsatisfied.I tried adding
#[expect(clippy::unused_async)]
and just above the function, but it did not affect clippy's detection. I also tried this construct:#[allow(clippy::allow_attributes, clippy::unused_async)]
, but this didn't work either.I saw references to this issue online, but no solution.
I would appreciate assistance.
Beta Was this translation helpful? Give feedback.
All reactions