1
1
error: manual implementation of an assign operation
2
- --> tests/ui/assign_ops.rs:9 :5
2
+ --> tests/ui/assign_ops.rs:10 :5
3
3
|
4
4
LL | a = a + 1;
5
5
| ^^^^^^^^^ help: replace it with: `a += 1`
@@ -8,67 +8,67 @@ LL | a = a + 1;
8
8
= help: to override `-D warnings` add `#[allow(clippy::assign_op_pattern)]`
9
9
10
10
error: manual implementation of an assign operation
11
- --> tests/ui/assign_ops.rs:11 :5
11
+ --> tests/ui/assign_ops.rs:12 :5
12
12
|
13
13
LL | a = 1 + a;
14
14
| ^^^^^^^^^ help: replace it with: `a += 1`
15
15
16
16
error: manual implementation of an assign operation
17
- --> tests/ui/assign_ops.rs:13 :5
17
+ --> tests/ui/assign_ops.rs:14 :5
18
18
|
19
19
LL | a = a - 1;
20
20
| ^^^^^^^^^ help: replace it with: `a -= 1`
21
21
22
22
error: manual implementation of an assign operation
23
- --> tests/ui/assign_ops.rs:15 :5
23
+ --> tests/ui/assign_ops.rs:16 :5
24
24
|
25
25
LL | a = a * 99;
26
26
| ^^^^^^^^^^ help: replace it with: `a *= 99`
27
27
28
28
error: manual implementation of an assign operation
29
- --> tests/ui/assign_ops.rs:17 :5
29
+ --> tests/ui/assign_ops.rs:18 :5
30
30
|
31
31
LL | a = 42 * a;
32
32
| ^^^^^^^^^^ help: replace it with: `a *= 42`
33
33
34
34
error: manual implementation of an assign operation
35
- --> tests/ui/assign_ops.rs:19 :5
35
+ --> tests/ui/assign_ops.rs:20 :5
36
36
|
37
37
LL | a = a / 2;
38
38
| ^^^^^^^^^ help: replace it with: `a /= 2`
39
39
40
40
error: manual implementation of an assign operation
41
- --> tests/ui/assign_ops.rs:21 :5
41
+ --> tests/ui/assign_ops.rs:22 :5
42
42
|
43
43
LL | a = a % 5;
44
44
| ^^^^^^^^^ help: replace it with: `a %= 5`
45
45
46
46
error: manual implementation of an assign operation
47
- --> tests/ui/assign_ops.rs:23 :5
47
+ --> tests/ui/assign_ops.rs:24 :5
48
48
|
49
49
LL | a = a & 1;
50
50
| ^^^^^^^^^ help: replace it with: `a &= 1`
51
51
52
52
error: manual implementation of an assign operation
53
- --> tests/ui/assign_ops.rs:30 :5
53
+ --> tests/ui/assign_ops.rs:31 :5
54
54
|
55
55
LL | s = s + "bla";
56
56
| ^^^^^^^^^^^^^ help: replace it with: `s += "bla"`
57
57
58
58
error: manual implementation of an assign operation
59
- --> tests/ui/assign_ops.rs:35 :5
59
+ --> tests/ui/assign_ops.rs:36 :5
60
60
|
61
61
LL | a = a + Wrapping(1u32);
62
62
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `a += Wrapping(1u32)`
63
63
64
64
error: manual implementation of an assign operation
65
- --> tests/ui/assign_ops.rs:38 :5
65
+ --> tests/ui/assign_ops.rs:39 :5
66
66
|
67
67
LL | v[0] = v[0] + v[1];
68
68
| ^^^^^^^^^^^^^^^^^^ help: replace it with: `v[0] += v[1]`
69
69
70
70
error: manual implementation of an assign operation
71
- --> tests/ui/assign_ops.rs:51 :5
71
+ --> tests/ui/assign_ops.rs:52 :5
72
72
|
73
73
LL | buf = buf + cows.clone();
74
74
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `buf += cows.clone()`
0 commit comments