Support serializing flattened unit

This commit is contained in:
David Tolnay
2020-08-10 15:06:47 -07:00
parent 26186bddd1
commit ba07075590
+1 -1
View File
@@ -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> {