serialize_unit returns a empty string
@@ -88,7 +88,7 @@ impl ser::Serializer for ConvertToString {
}
fn serialize_unit(self) -> Result<Self::Ok, Self::Error> {
- Err(SerializerError::UnserializableType { type_name: "()" })
+ Ok("".to_string())
}
fn serialize_unit_struct(self, _name: &'static str) -> Result<Self::Ok, Self::Error> {
