diff options
Diffstat (limited to 'src/encoder')
-rw-r--r-- | src/encoder/serde.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/encoder/serde.rs b/src/encoder/serde.rs index d5bbb77..a782cd2 100644 --- a/src/encoder/serde.rs +++ b/src/encoder/serde.rs @@ -26,6 +26,9 @@ impl ser::Serializer for Encoder { fn serialize_none(&mut self) -> Result<(), Error> { self.emit_none() } + fn serialize_char(&mut self, c: char) -> Result<(), Error> { + self.serialize_str(&c.to_string()) + } fn serialize_some<V>(&mut self, value: V) -> Result<(), Error> where V: ser::Serialize { |