Close the seq before failing on invalid length
Equivalent to what 0f9a930 does for maps.
This commit is contained in:
parent
431cbe48b7
commit
f25e6d3ea9
@ -425,6 +425,7 @@ fn deserialize_seq(
|
||||
let $name = match $visit {
|
||||
Some(value) => { value },
|
||||
None => {
|
||||
try!(visitor.end());
|
||||
return Err(_serde::de::Error::invalid_length($index_in_seq));
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user