mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 11:37:55 +00:00
Return an error type instead of unwrapping in the vec serializer
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user