fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: manual implementation of an assign operation 2 --> $DIR/string_add.rs:13:9 3 | 4LL | x = x + "."; 5 | ^^^^^^^^^^^ help: replace it with: `x += "."` 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: you added something to a string. Consider using `String::push_str()` instead 11 --> $DIR/string_add.rs:13:13 12 | 13LL | x = x + "."; 14 | ^^^^^^^ 15 | 16 = note: `-D clippy::string-add` implied by `-D warnings` 17 = help: to override `-D warnings` add `#[allow(clippy::string_add)]` 18 19error: you added something to a string. Consider using `String::push_str()` instead 20 --> $DIR/string_add.rs:17:13 21 | 22LL | let z = y + "..."; 23 | ^^^^^^^^^ 24 25error: manual implementation of an assign operation 26 --> $DIR/string_add.rs:22:5 27 | 28LL | x = x + 1; 29 | ^^^^^^^^^ help: replace it with: `x += 1` 30 31error: aborting due to 4 previous errors 32