-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[instrument(err)]
triggers clippy::blocks_in_conditions
when used inside of #[async_trait]
on nightly
#2912
Comments
This has been fixed by #2880 |
@kaffarell could you get this change released please? The last |
Or maybe I should ask @hawkw instead for a release. Without this fix we have to disable this clippy lint globally because we have a lot of usages of this pattern of code with tracing |
This also happens on stable rust 1.80.1, and there don't seem to be a release with the fix yet. |
I am adding As a side note, the stabilization of RFC 2383 would be very handy for this specific issue, specifically |
Reproduction
Here is sample well-formed code that shouldn't trigger clippy lints:
When you give it to clippy you'll see a warning:
Version
Platform
The text was updated successfully, but these errors were encountered: