Use push_str to support old compilers

This commit is contained in:
David Tolnay
2016-09-27 00:47:54 -07:00
parent 7d09b1475c
commit 9a86e6818f
+2 -2
View File
@@ -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)
} }