mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
4abe815729
Add `manual_is_ascii_check` lint Addresses https://github.com/rust-lang/rust-clippy/issues/9290 This PR adds new lint `manual_is_ascii_check`, which detects comparison with ascii ranges using `matches!` macros. As I mentioned as following in the Issue; > Yes, that's true. we'll start small and then grow it. > So I'll try to handle matches! macro with single range as suggested above. However during writing first version, I was thinking that the changes to support alphabetic and digits will be small patch, so I made a single PR in hope review cost can be reduced. changelog: add new lint [`manual_is_ascii_check`] r? `@xFrednet` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |