-
I'm interested in denying the local usage of Is there any combination of lints or configurations that I could use to trigger this behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's no such lint currently. If you want, we can add such a lint as an allow-by-default (opt-in) lint in the
In Rust there is almost never a reason why you should use |
Beta Was this translation helpful? Give feedback.
There's no such lint currently. If you want, we can add such a lint as an allow-by-default (opt-in) lint in the
restriction
group. If you want to contribute this lint, take a look at our book and how to add new lints: https://doc.rust-lang.org/clippy/development/defining_lints.htmlIn Rust there is almost never a reason why you should use
Any
, even during development. I've never needed it in the >6 years I've been writing Rust. I've also never seenAny
in other code, when it wasn't absolutely necessary. Probably the reason, why this lint was never requested or implemented.