2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:7:8
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x == y || x < y {
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::double-comparisons` implied by `-D warnings`
|
2018-01-29 19:35:35 -06:00
|
|
|
|
2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:10:8
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x < y || x == y {
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
2018-01-29 19:35:35 -06:00
|
|
|
|
2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:13:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x == y || x > y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
|
2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:16:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x > y || x == y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
|
2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:19:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x < y || x > y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
|
2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:22:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x > y || x < y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
|
2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:25:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x <= y && x >= y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
|
2020-07-23 12:50:28 -05:00
|
|
|
error: this binary expression can be simplified
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/double_comparison.rs:28:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x >= y && x <= y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|