rust/clippy_lints
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
..
src Auto merge of #10921 - Centri3:needless_if, r=blyxyas,Manishearth 2023-06-12 04:18:50 +00:00
Cargo.toml Add lint to check lint formulation messages 2023-06-03 00:00:30 +05:30
README.md

This crate contains Clippy lints. For the main crate, check GitHub.