3 #![warn(clippy::bool_to_int_with_if)]
4 #![allow(unused, dead_code, clippy::unnecessary_operation, clippy::no_effect)]
19 i32::from(cond(a, b));
25 } else { i32::from(b) };
27 // if else if inverted
30 } else { i32::from(!b) };
82 // Lint returns and type inference
83 fn some_fn(a: bool) -> u8 {
89 fn cond(a: bool, b: bool) -> bool {