diff options
| author | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-06-30 16:41:30 +0200 |
|---|---|---|
| committer | Adolfo OchagavĂa <aochagavia92@gmail.com> | 2014-07-15 19:55:17 +0200 |
| commit | 211f1caa290d83a3e24ad99d53395975a3981014 (patch) | |
| tree | 717e8a9d5debccefacc275fdd28f6a292a5737be /src/libuuid | |
| parent | 1704ebb798bd55a782b80ae6741c5d11403aaf13 (diff) | |
Deprecate `str::from_utf8_owned`
Use `String::from_utf8` instead [breaking-change]
Diffstat (limited to 'src/libuuid')
| -rw-r--r-- | src/libuuid/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libuuid/lib.rs b/src/libuuid/lib.rs index 1f84306f9cc..70c0078a99d 100644 --- a/src/libuuid/lib.rs +++ b/src/libuuid/lib.rs @@ -327,7 +327,7 @@ impl Uuid { *s.get_mut(i*2+0) = digit.as_bytes()[0]; *s.get_mut(i*2+1) = digit.as_bytes()[1]; } - str::from_utf8(s.as_slice()).unwrap().to_string() + String::from_utf8(s).unwrap() } /// Returns a string of hexadecimal digits, separated into groups with a hyphen. |
