]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/match-borrowed_str.rs
std: Remove format_strbuf!()
[rust.git] / src / test / run-pass / match-borrowed_str.rs
index a74f3e8332636c5b3cf68b7743e9a36e016dca65..b359614fa9adb2c365ec34174d72d8a2c858ae00 100644 (file)
@@ -22,7 +22,7 @@ fn f2(ref_string: &str) -> String {
     match ref_string {
         "a" => "found a".to_string(),
         "b" => "found b".to_string(),
-        s => format_strbuf!("not found ({})", s)
+        s => format!("not found ({})", s)
     }
 }
 
@@ -38,7 +38,7 @@ fn g2(ref_1: &str, ref_2: &str) -> String {
     match (ref_1, ref_2) {
         ("a", "b") => "found a,b".to_string(),
         ("b", "c") => "found b,c".to_string(),
-        (s1, s2) => format_strbuf!("not found ({}, {})", s1, s2)
+        (s1, s2) => format!("not found ({}, {})", s1, s2)
     }
 }