2019-08-22 00:18:08 -05:00
|
|
|
#![warn(clippy::short_circuit_statement)]
|
|
|
|
#![allow(clippy::nonminimal_bool)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
if f() { g(); }
|
|
|
|
if !f() { g(); }
|
2021-12-30 08:10:43 -06:00
|
|
|
if 1 != 2 { g(); }
|
2019-08-22 00:18:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn f() -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
fn g() -> bool {
|
|
|
|
false
|
|
|
|
}
|