]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead |
781aab86 | 2 | --> $DIR/string_add_assign.rs:8:9 |
f20569fa XL |
3 | | |
4 | LL | x = x + "."; | |
5 | | ^^^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::string-add-assign` implied by `-D warnings` | |
781aab86 | 8 | = help: to override `-D warnings` add `#[allow(clippy::string_add_assign)]` |
f20569fa XL |
9 | |
10 | error: manual implementation of an assign operation | |
781aab86 | 11 | --> $DIR/string_add_assign.rs:8:9 |
f20569fa XL |
12 | | |
13 | LL | x = x + "."; | |
14 | | ^^^^^^^^^^^ help: replace it with: `x += "."` | |
15 | | | |
16 | = note: `-D clippy::assign-op-pattern` implied by `-D warnings` | |
781aab86 | 17 | = help: to override `-D warnings` add `#[allow(clippy::assign_op_pattern)]` |
f20569fa XL |
18 | |
19 | error: manual implementation of an assign operation | |
781aab86 | 20 | --> $DIR/string_add_assign.rs:17:5 |
f20569fa XL |
21 | | |
22 | LL | x = x + 1; | |
23 | | ^^^^^^^^^ help: replace it with: `x += 1` | |
24 | ||
25 | error: aborting due to 3 previous errors | |
26 |