Merge pull request #423 from dtolnay/seq
Close the seq before failing on invalid length
This commit is contained in:
commit
7ffb74f5bb
@ -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…
Reference in New Issue
Block a user