mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 05:58:01 +00:00
Close the seq before failing on invalid length
Equivalent to what 0f9a930 does for maps.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user