mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-09 23:27:57 +00:00
Allow untagged unit variants to deserialize from Visitor::visit_none()
This commit is contained in:
@@ -2510,6 +2510,13 @@ mod content {
|
||||
{
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn visit_none<E>(self) -> Result<(), E>
|
||||
where
|
||||
E: de::Error,
|
||||
{
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user