about summary refs log tree commit diff
path: root/src/libstd/str.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-29 03:31:39 -0700
committerbors <bors@rust-lang.org>2014-05-29 03:31:39 -0700
commitff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768 (patch)
tree4912545d81ef12954c9204cf7c9a98b5ae16911e /src/libstd/str.rs
parentd35a38087088301aa58f244ae99d48b282df6fb2 (diff)
parent42aed6bde2fb05a262e21334656cdf91f51744dd (diff)
downloadrust-ff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768.tar.gz
rust-ff2bf58e9e0c1e7b154b88fc7ba8c52584e9f768.zip
auto merge of #14481 : alexcrichton/rust/no-format-strbuf, r=sfackler
* Removes `format_strbuf!()`
Diffstat (limited to 'src/libstd/str.rs')
-rw-r--r--src/libstd/str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs
index eb97f0f6a28..274a1b06863 100644
--- a/src/libstd/str.rs
+++ b/src/libstd/str.rs
@@ -2123,7 +2123,7 @@ mod tests {
         assert_eq!(s.len(), 5);
         assert_eq!(s.as_slice(), "abcde");
         assert_eq!(s.to_str(), "abcde".to_string());
-        assert_eq!(format_strbuf!("{}", s), "abcde".to_string());
+        assert_eq!(format!("{}", s), "abcde".to_string());
         assert!(s.lt(&Owned("bcdef".to_string())));
         assert_eq!(Slice(""), Default::default());
 
@@ -2131,7 +2131,7 @@ mod tests {
         assert_eq!(o.len(), 5);
         assert_eq!(o.as_slice(), "abcde");
         assert_eq!(o.to_str(), "abcde".to_string());
-        assert_eq!(format_strbuf!("{}", o), "abcde".to_string());
+        assert_eq!(format!("{}", o), "abcde".to_string());
         assert!(o.lt(&Slice("bcdef")));
         assert_eq!(Owned("".to_string()), Default::default());