diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-27 20:44:58 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-28 08:35:41 -0700 |
| commit | 42aed6bde2fb05a262e21334656cdf91f51744dd (patch) | |
| tree | 0b7c43f70001fe714a13f95df7e2807a8fdfb85b /src/libsemver | |
| parent | 24b1ce1daf9dbf66d04116d0549a48a7610bc614 (diff) | |
| download | rust-42aed6bde2fb05a262e21334656cdf91f51744dd.tar.gz rust-42aed6bde2fb05a262e21334656cdf91f51744dd.zip | |
std: Remove format_strbuf!()
This was only ever a transitionary macro.
Diffstat (limited to 'src/libsemver')
| -rw-r--r-- | src/libsemver/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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()); } |
