diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-05-14 21:16:44 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-05-16 11:41:27 -0700 |
| commit | 28bcef85e402a32cf44b740f128e5f9bbd21c0a0 (patch) | |
| tree | 15b222467760e8473355abe128dc7d8cdccca2b7 /src/libuuid | |
| parent | 67e39a8e7686bd33b9a8fbfc926f619029a33ac0 (diff) | |
libserialize: Remove all uses of `~str` from `libserialize`.
Had to make `struct Tm` in `libtime` not serializable for now.
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 94f1239cc08..d2032b9d492 100644 --- a/src/libuuid/lib.rs +++ b/src/libuuid/lib.rs @@ -500,7 +500,7 @@ impl<T: Encoder<E>, E> Encodable<T, E> for Uuid { impl<T: Decoder<E>, E> Decodable<T, E> for Uuid { /// Decode a UUID from a string fn decode(d: &mut T) -> Result<Uuid, E> { - Ok(from_str(try!(d.read_str())).unwrap()) + Ok(from_str(try!(d.read_str()).as_slice()).unwrap()) } } |
