Merge pull request #1669 from H2CO3/master

Allow untagged unit variants to deserialize from `Visitor::visit_none()`
This commit is contained in:
David Tolnay authored and GitHub committed 2019-11-24 16:13:37 -08:00
commit ff70409215
2 files changed
+10 -5

No files matched your search

+7
View File
@@ -2510,6 +2510,13 @@ mod content {
{
Ok(())
}
fn visit_none<E>(self) -> Result<(), E>
where
E: de::Error,
{
Ok(())
}
}
}