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:
parent
232e2b79f2
commit
d1df73228a
17 changed files with 780 additions and 207 deletions
|
|
@ -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(());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue