bors
4abe815729
Auto merge of #9765 - koka831:feat/manual_is_ascii_check, r=xFrednet
...
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`
2022-11-08 09:20:52 +00:00
..
2022-11-02 13:30:58 +00:00
2022-10-30 21:15:46 +00:00
2022-10-30 21:15:46 +00:00
2022-10-29 12:15:51 +00:00
2022-10-29 12:15:51 +00:00
2022-10-29 12:15:51 +00:00
2022-01-11 09:53:29 +01:00
2022-10-10 21:11:37 +02:00
2022-03-17 19:57:35 -04:00
2022-08-02 12:06:22 -05:00
2022-11-02 12:47:46 +01:00
2022-11-02 12:47:46 +01:00
2022-10-25 20:30:37 +02:00
2022-10-25 20:30:37 +02:00
2022-10-12 18:47:49 -04:00
2022-10-24 10:51:50 +02:00
2022-10-24 10:51:50 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-10-02 15:13:22 -04:00
2022-10-28 13:18:07 -04:00
2022-10-31 12:50:59 -07:00
2022-11-04 21:09:26 -07:00
2022-10-23 14:06:59 +00:00
2022-11-04 21:21:55 -07:00
2022-11-04 21:21:55 -07:00
2022-10-26 12:24:37 +08:00
2022-11-07 16:39:36 +09:00
2022-11-07 16:39:36 +09:00
2022-11-07 16:39:36 +09:00
2022-10-24 22:05:39 +02:00
2022-10-24 22:05:39 +02:00
2022-10-24 22:05:39 +02:00
2022-10-24 22:05:39 +02:00
2022-10-23 23:20:20 +09:00
2022-10-23 23:20:20 +09:00
2022-10-23 23:20:20 +09:00
2022-08-07 21:53:51 -04:00
2022-11-02 12:47:46 +01:00
2022-10-30 06:47:35 -04:00
2022-10-26 12:24:37 +08:00
2022-10-26 12:24:37 +08:00
2022-10-28 08:53:06 -04:00
2022-10-28 08:53:06 -04:00
2022-10-25 07:28:09 +13:00
2022-10-25 07:28:09 +13:00
2022-11-07 14:14:04 -05:00
2022-11-07 14:14:04 -05:00
2022-11-07 14:14:04 -05:00
2022-10-30 06:47:35 -04:00
2022-10-30 06:47:35 -04:00
2022-10-27 18:50:42 +01:00
2022-10-27 18:50:42 +01:00
2022-10-29 16:44:12 +02:00
2022-10-29 16:44:12 +02:00
2022-10-23 23:20:20 +09:00
2022-10-23 23:20:20 +09:00
2022-10-23 23:20:20 +09:00
2022-10-25 21:16:28 -07:00
2022-10-25 21:16:28 -07:00
2022-10-25 21:16:28 -07:00
2022-10-25 12:26:06 +09:00
2022-10-25 12:26:06 +09:00
2022-10-25 12:26:06 +09:00
2022-10-24 16:31:45 +00:00
2022-10-24 16:31:45 +00:00
2022-10-24 16:31:45 +00:00
2022-10-28 17:35:44 +02:00
2022-10-28 17:35:44 +02:00
2022-10-28 17:35:44 +02:00
2022-10-25 20:30:37 +02:00
2022-10-25 20:30:37 +02:00
2022-10-30 06:47:35 -04:00
2022-10-30 06:47:35 -04:00
2022-10-30 06:47:35 -04:00
2022-10-28 22:09:36 +02:00
2022-10-28 22:09:36 +02:00
2022-11-03 23:53:29 +09:00
2021-08-10 12:08:09 +02:00
2022-10-26 18:30:32 +02:00
2022-10-26 18:30:32 +02:00
2022-10-26 18:30:32 +02:00