auto merge of #14932 : Sawyer47/rust/json-smallfix, r=huonw

This commit is contained in:
bors 2014-06-16 13:16:44 +00:00
commit 8a5c5b6081

View File

@ -350,11 +350,7 @@ fn escape_str(s: &str) -> String {
}
fn spaces(n: uint) -> String {
let mut ss = String::new();
for _ in range(0, n) {
ss.push_str(" ");
}
return ss
String::from_char(n, ' ')
}
/// A structure for implementing serialization to JSON.