]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: this binary expression can be simplified |
c620b35d | 2 | --> tests/ui/double_comparison.rs:6:8 |
f20569fa XL |
3 | | |
4 | LL | if x == y || x < y { | |
5 | | ^^^^^^^^^^^^^^^ help: try: `x <= y` | |
6 | | | |
7 | = note: `-D clippy::double-comparisons` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::double_comparisons)]` |
f20569fa XL |
9 | |
10 | error: this binary expression can be simplified | |
c620b35d | 11 | --> tests/ui/double_comparison.rs:9:8 |
f20569fa XL |
12 | | |
13 | LL | if x < y || x == y { | |
14 | | ^^^^^^^^^^^^^^^ help: try: `x <= y` | |
15 | ||
16 | error: this binary expression can be simplified | |
c620b35d | 17 | --> tests/ui/double_comparison.rs:12:8 |
f20569fa XL |
18 | | |
19 | LL | if x == y || x > y { | |
20 | | ^^^^^^^^^^^^^^^ help: try: `x >= y` | |
21 | ||
22 | error: this binary expression can be simplified | |
c620b35d | 23 | --> tests/ui/double_comparison.rs:15:8 |
f20569fa XL |
24 | | |
25 | LL | if x > y || x == y { | |
26 | | ^^^^^^^^^^^^^^^ help: try: `x >= y` | |
27 | ||
28 | error: this binary expression can be simplified | |
c620b35d | 29 | --> tests/ui/double_comparison.rs:18:8 |
f20569fa XL |
30 | | |
31 | LL | if x < y || x > y { | |
32 | | ^^^^^^^^^^^^^^ help: try: `x != y` | |
33 | ||
34 | error: this binary expression can be simplified | |
c620b35d | 35 | --> tests/ui/double_comparison.rs:21:8 |
f20569fa XL |
36 | | |
37 | LL | if x > y || x < y { | |
38 | | ^^^^^^^^^^^^^^ help: try: `x != y` | |
39 | ||
40 | error: this binary expression can be simplified | |
c620b35d | 41 | --> tests/ui/double_comparison.rs:24:8 |
f20569fa XL |
42 | | |
43 | LL | if x <= y && x >= y { | |
44 | | ^^^^^^^^^^^^^^^^ help: try: `x == y` | |
45 | ||
46 | error: this binary expression can be simplified | |
c620b35d | 47 | --> tests/ui/double_comparison.rs:27:8 |
f20569fa XL |
48 | | |
49 | LL | if x >= y && x <= y { | |
50 | | ^^^^^^^^^^^^^^^^ help: try: `x == y` | |
51 | ||
52 | error: aborting due to 8 previous errors | |
53 |