Support serializing flattened unit
This commit is contained in:
parent
26186bddd1
commit
ba07075590
@ -1124,7 +1124,7 @@ where
|
||||
}
|
||||
|
||||
fn serialize_unit(self) -> Result<Self::Ok, Self::Error> {
|
||||
Err(Self::bad_type(Unsupported::Unit))
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn serialize_unit_struct(self, _: &'static str) -> Result<Self::Ok, Self::Error> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user