Open Veetaha opened 6 months ago
This has been fixed by #2880
@kaffarell could you get this change released please? The last tracing-attributes
release was in October 2023
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 #[allow(clippy::blocks_in_conditions)]
everywhere this error pops up. It's annoying, but it works. I hope a new release comes out soon.
As a side note, the stabilization of RFC 2383 would be very handy for this specific issue, specifically expect(lint)
.
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