2018-01-30 01:35:35 +00:00
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:15:8
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x == y || x < y {
|
2018-10-06 16:18:06 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::double-comparisons` implied by `-D warnings`
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:18:8
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x < y || x == y {
|
2018-10-06 16:18:06 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:21:8
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x == y || x > y {
|
2018-01-30 01:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
|
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:24:8
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x > y || x == y {
|
2018-01-30 01:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
|
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:27:8
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x < y || x > y {
|
2018-01-30 01:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
|
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:30:8
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x > y || x < y {
|
2018-01-30 01:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
|
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:33:8
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x <= y && x >= y {
|
2018-01-30 01:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
|
|
|
|
error: This binary expression can be simplified
|
2019-01-04 10:22:38 +00:00
|
|
|
--> $DIR/double_comparison.rs:36:8
|
2018-01-30 01:35:35 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | if x >= y && x <= y {
|
2018-01-30 01:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|