Another workaround for https://github.com/rust-lang/rust/issues/15763
This commit is contained in:
parent
cc942a47f3
commit
b5b7a6b080
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue