libserialize: Remove all uses of ~str
from libserialize
.
Had to make `struct Tm` in `libtime` not serializable for now.
This commit is contained in:
parent
67e39a8e76
commit
28bcef85e4
13 changed files with 316 additions and 275 deletions
|
@ -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())))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue