std: Remove format_strbuf!()

This was only ever a transitionary macro.
This commit is contained in:
Alex Crichton
2014-05-27 20:44:58 -07:00
parent 24b1ce1daf
commit 42aed6bde2
104 changed files with 754 additions and 931 deletions

View File

@@ -366,7 +366,7 @@ impl fmt::Show for clean::Type {
lifetimes = if decl.lifetimes.len() == 0 {
"".to_string()
} else {
format_strbuf!("<{:#}>", decl.lifetimes)
format!("<{:#}>", decl.lifetimes)
},
args = decl.decl.inputs,
bounds = if decl.bounds.len() == 0 {
@@ -375,7 +375,7 @@ impl fmt::Show for clean::Type {
let mut m = decl.bounds
.iter()
.map(|s| s.to_str().to_string());
format_strbuf!(
format!(
": {}",
m.collect::<Vec<String>>().connect(" + "))
},
@@ -388,7 +388,7 @@ impl fmt::Show for clean::Type {
match decl.abi.as_slice() {
"" => " extern ".to_string(),
"\"Rust\"" => "".to_string(),
s => format_strbuf!(" extern {} ", s)
s => format!(" extern {} ", s)
},
decl.generics,
decl.decl)