mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-02 00:11:07 +00:00
Use push_str to support old compilers
This commit is contained in:
1 file changed
+2
-2
@@ -25,8 +25,8 @@ impl Ctxt {
|
|||||||
n => {
|
n => {
|
||||||
let mut msg = format!("{} errors:", n);
|
let mut msg = format!("{} errors:", n);
|
||||||
for err in errors {
|
for err in errors {
|
||||||
msg += "\n\t# ";
|
msg.push_str("\n\t# ");
|
||||||
msg += &err;
|
msg.push_str(&err);
|
||||||
}
|
}
|
||||||
Err(msg)
|
Err(msg)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user