This commit is contained in:
Andrew Poelstra 2014-07-25 16:50:58 -07:00
parent cc942a47f3
commit b5b7a6b080
1 changed files with 4 additions and 2 deletions

View File

@ -485,8 +485,10 @@ impl<T:Serializable, U:Serializable> Serializable for (T, U) {
} }
fn deserialize<I: Iterator<u8>>(mut iter: I) -> IoResult<(T, U)> { fn deserialize<I: Iterator<u8>>(mut iter: I) -> IoResult<(T, U)> {
Ok((try!(Serializable::deserialize(iter.by_ref())), // FIXME: assign then return is a workaround for https://github.com/rust-lang/rust/issues/15763
try!(Serializable::deserialize(iter.by_ref())))) let ret = Ok((try!(Serializable::deserialize(iter.by_ref())),
try!(Serializable::deserialize(iter.by_ref()))));
ret
} }
} }