Skip to content
Discussion options

You must be logged in to vote

This lint is in the nursery group, which means that it is disabled-by-default, because it has problems. What you encounter might be a bug.

But also note that not every Clippy lint applies to every project. You might have use cases where you actually want to go against a Clippy lint. Then it is recommended to annotate that code with a

#[expect(clippy::lint, reason = "this is intentional, because [...]")]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cerdelen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants