mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-05 17:01:07 +00:00
Support serializing flattened unit
This commit is contained in:
1 file changed
+1
-1
@@ -1124,7 +1124,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn serialize_unit(self) -> Result<Self::Ok, Self::Error> {
|
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> {
|
fn serialize_unit_struct(self, _: &'static str) -> Result<Self::Ok, Self::Error> {
|
||||||
|
|||||||
Reference in new issue
Block a user