libserialize: Remove all uses of ~str from libserialize.

Had to make `struct Tm` in `libtime` not serializable for now.
This commit is contained in:
Patrick Walton 2014-05-14 21:16:44 -07:00
parent 67e39a8e76
commit 28bcef85e4
13 changed files with 316 additions and 275 deletions

View file

@ -606,7 +606,8 @@ impl<'a> Equiv<&'a str> for InternedString {
impl<D:Decoder<E>, E> Decodable<D, E> for InternedString {
fn decode(d: &mut D) -> Result<InternedString, E> {
Ok(get_name(get_ident_interner().intern(try!(d.read_str()))))
Ok(get_name(get_ident_interner().intern(
try!(d.read_str()).as_slice())))
}
}