1
Fork 0

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 { fn spaces(n: uint) -> String {
let mut ss = String::new(); String::from_char(n, ' ')
for _ in range(0, n) {
ss.push_str(" ");
}
return ss
} }
/// A structure for implementing serialization to JSON. /// A structure for implementing serialization to JSON.