From 6f43fc3b296bebdf95611d64ccb359b18b8da59b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 31 May 2016 10:41:47 -0700 Subject: Fix serde tests on nightly --- src/encoder/serde.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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(&mut self, value: V) -> Result<(), Error> where V: ser::Serialize { -- cgit v1.2.3