This commit is contained in:
Andrew Poelstra 2014-07-21 19:40:29 -07:00
parent 46969b3396
commit ca6d4cdde4
1 changed files with 3 additions and 2 deletions

View File

@ -34,9 +34,10 @@ macro_rules! impl_serializable(
fn deserialize<I: Iterator<u8>>(mut iter: I) -> IoResult<$thing> { fn deserialize<I: Iterator<u8>>(mut iter: I) -> IoResult<$thing> {
use util::misc::prepend_err; use util::misc::prepend_err;
Ok($thing { let ret = Ok($thing {
$( $field: try!(prepend_err(stringify!($field), Serializable::deserialize(iter.by_ref()))), )+ $( $field: try!(prepend_err(stringify!($field), Serializable::deserialize(iter.by_ref()))), )+
}) });
ret
} }
} }
); );