error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:14:8
+ --> $DIR/double_comparison.rs:6:8
|
-14 | if x == y || x < y {
+LL | if x == y || x < y {
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
= note: `-D clippy::double-comparisons` implied by `-D warnings`
error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:17:8
+ --> $DIR/double_comparison.rs:9:8
|
-17 | if x < y || x == y {
+LL | if x < y || x == y {
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:20:8
+ --> $DIR/double_comparison.rs:12:8
|
-20 | if x == y || x > y {
+LL | if x == y || x > y {
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:23:8
+ --> $DIR/double_comparison.rs:15:8
|
-23 | if x > y || x == y {
+LL | if x > y || x == y {
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:26:8
+ --> $DIR/double_comparison.rs:18:8
|
-26 | if x < y || x > y {
+LL | if x < y || x > y {
| ^^^^^^^^^^^^^^ help: try: `x != y`
error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:29:8
+ --> $DIR/double_comparison.rs:21:8
|
-29 | if x > y || x < y {
+LL | if x > y || x < y {
| ^^^^^^^^^^^^^^ help: try: `x != y`
error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:32:8
+ --> $DIR/double_comparison.rs:24:8
|
-32 | if x <= y && x >= y {
+LL | if x <= y && x >= y {
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
error: This binary expression can be simplified
- --> $DIR/double_comparison.rs:35:8
+ --> $DIR/double_comparison.rs:27:8
|
-35 | if x >= y && x <= y {
+LL | if x >= y && x <= y {
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
error: aborting due to 8 previous errors