mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-26 05:25:09 +00:00
Allow untagged unit variants to deserialize from Visitor::visit_none()
This commit is contained in:
1 parent
4eb580790d
commit
6e2c385fa5
2 files changed
+16
No files matched your search
@@ -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