auto merge of #14932 : Sawyer47/rust/json-smallfix, r=huonw
This commit is contained in:
commit
8a5c5b6081
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user