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/libuuid | |
| 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/libuuid')
| -rw-r--r-- | src/libuuid/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libuuid/lib.rs b/src/libuuid/lib.rs index a9c80c90fd6..99dd7d8503c 100644 --- a/src/libuuid/lib.rs +++ b/src/libuuid/lib.rs @@ -346,8 +346,8 @@ impl Uuid { uf.data1 = to_be32(uf.data1); uf.data2 = to_be16(uf.data2); uf.data3 = to_be16(uf.data3); - let s = format_strbuf!("{:08x}-{:04x}-{:04x}-{:02x}{:02x}-\ - {:02x}{:02x}{:02x}{:02x}{:02x}{:02x}", + let s = format!("{:08x}-{:04x}-{:04x}-{:02x}{:02x}-\ + {:02x}{:02x}{:02x}{:02x}{:02x}{:02x}", uf.data1, uf.data2, uf.data3, uf.data4[0], uf.data4[1], @@ -362,7 +362,7 @@ impl Uuid { /// /// Example: `urn:uuid:F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4` pub fn to_urn_str(&self) -> String { - format_strbuf!("urn:uuid:{}", self.to_hyphenated_str()) + format!("urn:uuid:{}", self.to_hyphenated_str()) } /// Parses a UUID from a string of hexadecimal digits with optional hyphens |
