auto merge of #14932 : Sawyer47/rust/json-smallfix, r=huonw
This commit is contained in:
commit
8a5c5b6081
1 changed files with 1 additions and 5 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue