A new lint for shared code in if blocks

* Added expression check for shared_code_in_if_blocks
* Finishing touches for the shared_code_in_if_blocks lint
* Applying PR suggestions
* Update lints yay
* Moved test into subfolder
This commit is contained in:
xFrednet 2020-12-11 22:29:53 +00:00
parent 232e2b79f2
commit d1df73228a
17 changed files with 780 additions and 207 deletions

View file

@ -1,5 +1,5 @@
#![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
#![allow(clippy::if_same_then_else)]
#![allow(clippy::if_same_then_else, clippy::shared_code_in_if_blocks)]
fn test_complex_conditions() {
let x: Result<(), ()> = Ok(());