diff options
Diffstat (limited to 'src/ser.rs')
-rw-r--r-- | src/ser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -423,7 +423,7 @@ impl<'a, 'b> ser::Serializer for &'b mut Serializer<'a> { _variant_index: u32, _variant: &'static str) -> Result<(), Self::Error> { - Err(Error::UnsupportedType) + self.serialize_str(_variant) } fn serialize_newtype_struct<T: ?Sized>(self, _name: &'static str, value: &T) |