fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this binary expression can be simplified 2 --> $DIR/double_comparison.rs:6:8 3 | 4LL | if x == y || x < y { 5 | ^^^^^^^^^^^^^^^ help: try: `x <= y` 6 | 7 = note: `-D clippy::double-comparisons` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::double_comparisons)]` 9 10error: this binary expression can be simplified 11 --> $DIR/double_comparison.rs:9:8 12 | 13LL | if x < y || x == y { 14 | ^^^^^^^^^^^^^^^ help: try: `x <= y` 15 16error: this binary expression can be simplified 17 --> $DIR/double_comparison.rs:12:8 18 | 19LL | if x == y || x > y { 20 | ^^^^^^^^^^^^^^^ help: try: `x >= y` 21 22error: this binary expression can be simplified 23 --> $DIR/double_comparison.rs:15:8 24 | 25LL | if x > y || x == y { 26 | ^^^^^^^^^^^^^^^ help: try: `x >= y` 27 28error: this binary expression can be simplified 29 --> $DIR/double_comparison.rs:18:8 30 | 31LL | if x < y || x > y { 32 | ^^^^^^^^^^^^^^ help: try: `x != y` 33 34error: this binary expression can be simplified 35 --> $DIR/double_comparison.rs:21:8 36 | 37LL | if x > y || x < y { 38 | ^^^^^^^^^^^^^^ help: try: `x != y` 39 40error: this binary expression can be simplified 41 --> $DIR/double_comparison.rs:24:8 42 | 43LL | if x <= y && x >= y { 44 | ^^^^^^^^^^^^^^^^ help: try: `x == y` 45 46error: this binary expression can be simplified 47 --> $DIR/double_comparison.rs:27:8 48 | 49LL | if x >= y && x <= y { 50 | ^^^^^^^^^^^^^^^^ help: try: `x == y` 51 52error: aborting due to 8 previous errors 53