Skip to content

Commit

Permalink
auto merge of rust-lang#14932 : Sawyer47/rust/json-smallfix, r=huonw
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Jun 16, 2014
2 parents 5abf794 + b71fa9b commit 8a5c5b6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libserialize/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8a5c5b6

Please sign in to comment.