]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/format.rs
auto merge of #14510 : kballard/rust/rename_strallocating_into_owned, r=alexcrichton
[rust.git] / src / librustdoc / html / format.rs
index 8b8ed92e72a3e84d14d4398423139c789b4a7924..3b3f4378d67ad3589ffb42e982b99176965b2f46 100644 (file)
@@ -366,7 +366,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        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 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                            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 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
                        match decl.abi.as_slice() {
                            "" => " extern ".to_string(),
                            "\"Rust\"" => "".to_string(),
-                           s => format_strbuf!(" extern {} ", s)
+                           s => format!(" extern {} ", s)
                        },
                        decl.generics,
                        decl.decl)