bors
21e6235b4c
Auto merge of #10921 - Centri3:needless_if, r=blyxyas,Manishearth
...
Add `needless_if` lint
first off: Sorry about the large diff. Seems a ton of tests do this (understandably so).
this is basically everything I wanted in #10868 , while it doesn't lint *all* unnecessary empty blocks, it lints needless if statements; which are basically the crux of the issue (for me) anyway. I've committed code that includes this far too many times 😅 hopefully clippy can help me out soon
closes #10868
changelog: New lint [`needless_if`]
2023-06-12 04:18:50 +00:00
..
2023-04-20 14:44:03 +00:00
2023-04-23 10:52:27 -04:00
2022-10-01 10:03:06 +00:00
2023-05-24 10:53:31 -05:00
2022-08-11 19:42:16 +02:00
2022-04-08 10:06:10 +01:00
2023-02-10 14:01:19 +01:00
2022-05-05 15:12:52 +01:00
2022-05-05 15:12:52 +01:00
2023-06-10 06:51:03 -05:00
2023-04-20 14:44:03 +00:00
2022-10-06 09:44:38 +02:00
2023-04-23 14:20:55 +00:00
2023-04-23 15:11:31 +02:00
2022-05-05 15:12:52 +01:00
2023-03-10 10:53:50 +01:00
2022-11-09 19:23:23 +08:00
2022-07-07 09:27:42 +02:00
2023-04-12 22:50:10 +00:00
2023-01-11 09:32:13 +00:00
2023-03-27 11:08:11 -04:00
2023-01-11 09:32:13 +00:00
2023-01-11 09:32:13 +00:00
2022-06-03 17:16:41 -04:00
2022-04-08 10:06:10 +01:00
2022-09-23 20:55:37 +02:00
2023-06-10 06:51:03 -05:00
2023-06-10 06:51:03 -05:00
2023-04-20 14:44:03 +00:00
2023-05-22 11:52:26 +02:00
2022-10-01 10:03:06 +00:00
2022-10-01 10:03:06 +00:00
2022-05-05 15:12:52 +01:00
2023-04-20 14:44:03 +00:00
2022-05-21 13:24:00 +02:00
2022-05-21 13:24:00 +02:00
2022-06-04 13:34:07 +02:00
2022-06-04 13:34:07 +02:00
2022-07-18 09:39:37 +02:00
2022-07-18 09:39:37 +02:00
2022-07-28 19:08:22 +02:00
2022-07-28 19:08:22 +02:00
2022-09-09 13:36:26 +02:00
2022-09-09 13:36:26 +02:00
2022-09-09 13:36:26 +02:00
2022-10-06 09:44:38 +02:00
2022-10-06 09:44:38 +02:00
2022-10-07 18:08:49 +02:00
2022-10-07 18:08:49 +02:00
2022-10-23 15:18:45 +02:00
2022-11-21 20:51:52 +01:00
2023-04-20 14:44:03 +00:00
2023-03-10 10:53:50 +01:00
2023-04-23 14:20:55 +00:00
2023-04-23 14:20:55 +00:00
2023-06-09 15:49:35 +02:00
2023-06-09 15:49:35 +02:00
2022-05-05 15:12:52 +01:00
2022-05-05 15:12:52 +01:00
2023-03-10 10:53:50 +01:00
2022-04-08 10:06:10 +01:00
2023-02-10 14:01:19 +01:00
2023-02-25 19:28:50 -05:00
2023-02-25 19:28:50 -05:00
2022-10-06 09:44:38 +02:00