Merge pull request #1669 from H2CO3/master

Allow untagged unit variants to deserialize from `Visitor::visit_none()`
This commit is contained in:
David Tolnay
2019-11-24 16:13:37 -08:00
committed by GitHub
2 changed files with 10 additions and 5 deletions
+7
View File
@@ -2510,6 +2510,13 @@ mod content {
{
Ok(())
}
fn visit_none<E>(self) -> Result<(), E>
where
E: de::Error,
{
Ok(())
}
}
}