2022-05-05 14:12:52 +00:00
|
|
|
error: `format!(..)` appended to existing `String`
|
|
|
|
--> $DIR/format_push_string.rs:5:5
|
|
|
|
|
|
|
|
|
LL | string += &format!("{:?}", 1234);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `write!` to avoid the extra allocation
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::format-push-string` implied by `-D warnings`
|
2022-05-05 14:12:52 +00:00
|
|
|
|
|
|
|
error: `format!(..)` appended to existing `String`
|
|
|
|
--> $DIR/format_push_string.rs:6:5
|
|
|
|
|
|
|
|
|
LL | string.push_str(&format!("{:?}", 5678));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `write!` to avoid the extra allocation
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|