mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-05 02:50:32 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
52 lines
1.4 KiB
Text
52 lines
1.4 KiB
Text
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:6:8
|
|
|
|
|
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:9:8
|
|
|
|
|
LL | if x < y || x == y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:12:8
|
|
|
|
|
LL | if x == y || x > y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:15:8
|
|
|
|
|
LL | if x > y || x == y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:18:8
|
|
|
|
|
LL | if x < y || x > y {
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:21:8
|
|
|
|
|
LL | if x > y || x < y {
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:24:8
|
|
|
|
|
LL | if x <= y && x >= y {
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:27:8
|
|
|
|
|
LL | if x >= y && x <= y {
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|