]>
Commit | Line | Data |
---|---|---|
fe692bf9 | 1 | #![allow(clippy::needless_if)] |
f20569fa XL |
2 | |
3 | fn main() { | |
4 | let x = 1; | |
5 | let y = 2; | |
6 | if x == y || x < y { | |
7 | // do something | |
8 | } | |
9 | if x < y || x == y { | |
10 | // do something | |
11 | } | |
12 | if x == y || x > y { | |
13 | // do something | |
14 | } | |
15 | if x > y || x == y { | |
16 | // do something | |
17 | } | |
18 | if x < y || x > y { | |
19 | // do something | |
20 | } | |
21 | if x > y || x < y { | |
22 | // do something | |
23 | } | |
24 | if x <= y && x >= y { | |
25 | // do something | |
26 | } | |
27 | if x >= y && x <= y { | |
28 | // do something | |
29 | } | |
30 | } |