]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: boolean short circuit operator in statement may be clearer using an explicit test |
2 | --> $DIR/short_circuit_statement.rs:7:5 | |
3 | | | |
4 | LL | f() && g(); | |
5 | | ^^^^^^^^^^^ help: replace it with: `if f() { g(); }` | |
6 | | | |
7 | = note: `-D clippy::short-circuit-statement` implied by `-D warnings` | |
8 | ||
9 | error: boolean short circuit operator in statement may be clearer using an explicit test | |
10 | --> $DIR/short_circuit_statement.rs:8:5 | |
11 | | | |
12 | LL | f() || g(); | |
13 | | ^^^^^^^^^^^ help: replace it with: `if !f() { g(); }` | |
14 | ||
15 | error: boolean short circuit operator in statement may be clearer using an explicit test | |
16 | --> $DIR/short_circuit_statement.rs:9:5 | |
17 | | | |
18 | LL | 1 == 2 || g(); | |
19 | | ^^^^^^^^^^^^^^ help: replace it with: `if !(1 == 2) { g(); }` | |
20 | ||
21 | error: aborting due to 3 previous errors | |
22 |