1 #![warn(clippy::if_chain_style)]
2 #![allow(clippy::no_effect, clippy::nonminimal_bool, clippy::missing_clippy_version_attribute)]
6 use if_chain::if_chain;
11 // `if_chain!` inside `if`
20 // multi-line AND'ed conditions
22 if let Some(1) = Some(1);
23 // `let` before `then`
30 // single `if` condition
39 // starts with `let ..`
41 if let Some(1) = Some(1);
74 if true { 1 } else { 2 }