11error: manual implementation of an assign operation
2- --> tests/ui/assign_ops.rs:9 :5
2+ --> tests/ui/assign_ops.rs:10 :5
33 |
44LL | a = a + 1;
55 | ^^^^^^^^^ help: replace it with: `a += 1`
@@ -8,67 +8,67 @@ LL | a = a + 1;
88 = help: to override `-D warnings` add `#[allow(clippy::assign_op_pattern)]`
99
1010error: manual implementation of an assign operation
11- --> tests/ui/assign_ops.rs:11 :5
11+ --> tests/ui/assign_ops.rs:12 :5
1212 |
1313LL | a = 1 + a;
1414 | ^^^^^^^^^ help: replace it with: `a += 1`
1515
1616error: manual implementation of an assign operation
17- --> tests/ui/assign_ops.rs:13 :5
17+ --> tests/ui/assign_ops.rs:14 :5
1818 |
1919LL | a = a - 1;
2020 | ^^^^^^^^^ help: replace it with: `a -= 1`
2121
2222error: manual implementation of an assign operation
23- --> tests/ui/assign_ops.rs:15 :5
23+ --> tests/ui/assign_ops.rs:16 :5
2424 |
2525LL | a = a * 99;
2626 | ^^^^^^^^^^ help: replace it with: `a *= 99`
2727
2828error: manual implementation of an assign operation
29- --> tests/ui/assign_ops.rs:17 :5
29+ --> tests/ui/assign_ops.rs:18 :5
3030 |
3131LL | a = 42 * a;
3232 | ^^^^^^^^^^ help: replace it with: `a *= 42`
3333
3434error: manual implementation of an assign operation
35- --> tests/ui/assign_ops.rs:19 :5
35+ --> tests/ui/assign_ops.rs:20 :5
3636 |
3737LL | a = a / 2;
3838 | ^^^^^^^^^ help: replace it with: `a /= 2`
3939
4040error: manual implementation of an assign operation
41- --> tests/ui/assign_ops.rs:21 :5
41+ --> tests/ui/assign_ops.rs:22 :5
4242 |
4343LL | a = a % 5;
4444 | ^^^^^^^^^ help: replace it with: `a %= 5`
4545
4646error: manual implementation of an assign operation
47- --> tests/ui/assign_ops.rs:23 :5
47+ --> tests/ui/assign_ops.rs:24 :5
4848 |
4949LL | a = a & 1;
5050 | ^^^^^^^^^ help: replace it with: `a &= 1`
5151
5252error: manual implementation of an assign operation
53- --> tests/ui/assign_ops.rs:30 :5
53+ --> tests/ui/assign_ops.rs:31 :5
5454 |
5555LL | s = s + "bla";
5656 | ^^^^^^^^^^^^^ help: replace it with: `s += "bla"`
5757
5858error: manual implementation of an assign operation
59- --> tests/ui/assign_ops.rs:35 :5
59+ --> tests/ui/assign_ops.rs:36 :5
6060 |
6161LL | a = a + Wrapping(1u32);
6262 | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `a += Wrapping(1u32)`
6363
6464error: manual implementation of an assign operation
65- --> tests/ui/assign_ops.rs:38 :5
65+ --> tests/ui/assign_ops.rs:39 :5
6666 |
6767LL | v[0] = v[0] + v[1];
6868 | ^^^^^^^^^^^^^^^^^^ help: replace it with: `v[0] += v[1]`
6969
7070error: manual implementation of an assign operation
71- --> tests/ui/assign_ops.rs:51 :5
71+ --> tests/ui/assign_ops.rs:52 :5
7272 |
7373LL | buf = buf + cows.clone();
7474 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()`
0 commit comments