fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: manual implementation of an assign operation 2 --> $DIR/assign_ops.rs:7:5 3 | 4LL | a = a + 1; 5 | ^^^^^^^^^ help: replace it with: `a += 1` 6 | 7 = note: `-D clippy::assign-op-pattern` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::assign_op_pattern)]` 9 10error: manual implementation of an assign operation 11 --> $DIR/assign_ops.rs:8:5 12 | 13LL | a = 1 + a; 14 | ^^^^^^^^^ help: replace it with: `a += 1` 15 16error: manual implementation of an assign operation 17 --> $DIR/assign_ops.rs:9:5 18 | 19LL | a = a - 1; 20 | ^^^^^^^^^ help: replace it with: `a -= 1` 21 22error: manual implementation of an assign operation 23 --> $DIR/assign_ops.rs:10:5 24 | 25LL | a = a * 99; 26 | ^^^^^^^^^^ help: replace it with: `a *= 99` 27 28error: manual implementation of an assign operation 29 --> $DIR/assign_ops.rs:11:5 30 | 31LL | a = 42 * a; 32 | ^^^^^^^^^^ help: replace it with: `a *= 42` 33 34error: manual implementation of an assign operation 35 --> $DIR/assign_ops.rs:12:5 36 | 37LL | a = a / 2; 38 | ^^^^^^^^^ help: replace it with: `a /= 2` 39 40error: manual implementation of an assign operation 41 --> $DIR/assign_ops.rs:13:5 42 | 43LL | a = a % 5; 44 | ^^^^^^^^^ help: replace it with: `a %= 5` 45 46error: manual implementation of an assign operation 47 --> $DIR/assign_ops.rs:14:5 48 | 49LL | a = a & 1; 50 | ^^^^^^^^^ help: replace it with: `a &= 1` 51 52error: manual implementation of an assign operation 53 --> $DIR/assign_ops.rs:20:5 54 | 55LL | s = s + "bla"; 56 | ^^^^^^^^^^^^^ help: replace it with: `s += "bla"` 57 58error: manual implementation of an assign operation 59 --> $DIR/assign_ops.rs:24:5 60 | 61LL | a = a + Wrapping(1u32); 62 | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `a += Wrapping(1u32)` 63 64error: manual implementation of an assign operation 65 --> $DIR/assign_ops.rs:26:5 66 | 67LL | v[0] = v[0] + v[1]; 68 | ^^^^^^^^^^^^^^^^^^ help: replace it with: `v[0] += v[1]` 69 70error: aborting due to 11 previous errors 71