From 42aed6bde2fb05a262e21334656cdf91f51744dd Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 27 May 2014 20:44:58 -0700 Subject: std: Remove format_strbuf!() This was only ever a transitionary macro. --- src/libsemver/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsemver') diff --git a/src/libsemver/lib.rs b/src/libsemver/lib.rs index a119d4832db..51dcc6d3faf 100644 --- a/src/libsemver/lib.rs +++ b/src/libsemver/lib.rs @@ -377,13 +377,13 @@ fn test_ne() { #[test] fn test_show() { - assert_eq!(format_strbuf!("{}", parse("1.2.3").unwrap()), + assert_eq!(format!("{}", parse("1.2.3").unwrap()), "1.2.3".to_string()); - assert_eq!(format_strbuf!("{}", parse("1.2.3-alpha1").unwrap()), + assert_eq!(format!("{}", parse("1.2.3-alpha1").unwrap()), "1.2.3-alpha1".to_string()); - assert_eq!(format_strbuf!("{}", parse("1.2.3+build.42").unwrap()), + assert_eq!(format!("{}", parse("1.2.3+build.42").unwrap()), "1.2.3+build.42".to_string()); - assert_eq!(format_strbuf!("{}", parse("1.2.3-alpha1+42").unwrap()), + assert_eq!(format!("{}", parse("1.2.3-alpha1+42").unwrap()), "1.2.3-alpha1+42".to_string()); } -- cgit 1.4.1-3-g733a5