Allow untagged unit variants to deserialize from Visitor::visit_none()

This commit is contained in:
Árpád Goretity
2019-11-06 17:31:27 +01:00
parent 4eb580790d
commit 6e2c385fa5
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -2510,6 +2510,13 @@ mod content {
{
Ok(())
}
fn visit_none<E>(self) -> Result<(), E>
where
E: de::Error,
{
Ok(())
}
}
}