Return an error type instead of unwrapping in the vec serializer
This commit is contained in:
parent
6357c56674
commit
8d188747b8
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user