diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-05-31 10:41:47 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2016-05-31 10:41:47 -0700 |
commit | 6f43fc3b296bebdf95611d64ccb359b18b8da59b (patch) | |
tree | 3a6a0de74fec828b2aac6aeb279bb94d3d4abfdd /src | |
parent | 44fc9d9f37cd1b2e3d9170d04fd0a8a04d7884ff (diff) | |
download | milf-rs-6f43fc3b296bebdf95611d64ccb359b18b8da59b.tar.gz milf-rs-6f43fc3b296bebdf95611d64ccb359b18b8da59b.zip |
Fix serde tests on nightly
Diffstat (limited to 'src')
-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 { |