Return an error type instead of unwrapping in the vec serializer

This commit is contained in:
Erick Tryzelaar 2014-08-04 16:39:21 -07:00
parent 6357c56674
commit 8d188747b8

View File

@ -524,7 +524,7 @@ mod tests {
let (len, _) = iter.size_hint();
try!(self.serialize(SeqStart(len)));
for elt in iter {
elt.serialize(self).unwrap();
try!(elt.serialize(self));
}
self.serialize(SeqEnd)
}