aboutsummaryrefslogtreecommitdiff
path: root/src/ser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ser.rs')
-rw-r--r--src/ser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ser.rs b/src/ser.rs
index e4b62f7..2365b38 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -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)