std: Remove format_strbuf!()
This was only ever a transitionary macro.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user