mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 18:43:20 +00:00
52 lines
1.4 KiB
Text
52 lines
1.4 KiB
Text
error: this binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:7: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:10:8
|
|
|
|
|
LL | if x < y || x == y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
|
|
|
error: this binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:13:8
|
|
|
|
|
LL | if x == y || x > y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
error: this binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:16:8
|
|
|
|
|
LL | if x > y || x == y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
error: this binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:19:8
|
|
|
|
|
LL | if x < y || x > y {
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
error: this binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:22:8
|
|
|
|
|
LL | if x > y || x < y {
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
error: this binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:25:8
|
|
|
|
|
LL | if x <= y && x >= y {
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
error: this binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:28:8
|
|
|
|
|
LL | if x >= y && x <= y {
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|