| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:4:8 | |
| | | |
| LL | if x == y || x < y { | |
| | ^^^^^^^^^^^^^^^ help: try: `x <= y` | |
| | | |
| = note: `-D clippy::double-comparisons` implied by `-D warnings` | |
| = help: to override `-D warnings` add `#[allow(clippy::double_comparisons)]` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:8:8 | |
| | | |
| LL | if x < y || x == y { | |
| | ^^^^^^^^^^^^^^^ help: try: `x <= y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:12:8 | |
| | | |
| LL | if x == y || x > y { | |
| | ^^^^^^^^^^^^^^^ help: try: `x >= y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:16:8 | |
| | | |
| LL | if x > y || x == y { | |
| | ^^^^^^^^^^^^^^^ help: try: `x >= y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:20:8 | |
| | | |
| LL | if x < y || x > y { | |
| | ^^^^^^^^^^^^^^ help: try: `x != y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:24:8 | |
| | | |
| LL | if x > y || x < y { | |
| | ^^^^^^^^^^^^^^ help: try: `x != y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:28:8 | |
| | | |
| LL | if x <= y && x >= y { | |
| | ^^^^^^^^^^^^^^^^ help: try: `x == y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:32:8 | |
| | | |
| LL | if x >= y && x <= y { | |
| | ^^^^^^^^^^^^^^^^ help: try: `x == y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:36:8 | |
| | | |
| LL | if x != y && x <= y { | |
| | ^^^^^^^^^^^^^^^^ help: try: `x < y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:40:8 | |
| | | |
| LL | if x <= y && x != y { | |
| | ^^^^^^^^^^^^^^^^ help: try: `x < y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:44:8 | |
| | | |
| LL | if x != y && x >= y { | |
| | ^^^^^^^^^^^^^^^^ help: try: `x > y` | |
| error: this binary expression can be simplified | |
| --> tests/ui/double_comparison.rs:48:8 | |
| | | |
| LL | if x >= y && x != y { | |
| | ^^^^^^^^^^^^^^^^ help: try: `x > y` | |
| error: aborting due to 12 previous errors | |