Merge pull request #423 from dtolnay/seq

Close the seq before failing on invalid length
This commit is contained in:
Oliver Schneider 2016-07-05 22:44:52 +02:00 committed by GitHub
commit 7ffb74f5bb

View File

@ -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));
}
};