From f5b1ae88282adfc2fe2253e4cd51c6ba5eca0c54 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sun, 29 Jan 2017 00:17:54 +0100 Subject: Do not forbid bool keys anymore Floats are supported so... --- src/ser/value.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/ser/value.rs') diff --git a/src/ser/value.rs b/src/ser/value.rs index 34ea7d0..e4e1f2c 100644 --- a/src/ser/value.rs +++ b/src/ser/value.rs @@ -30,10 +30,6 @@ impl<'key, 'target, Target> Sink for ValueSink<'key, 'target, Target> { type Ok = (); - fn serialize_bool(self, value: bool) -> Result { - self.serialize_static_str(if value { "true" } else { "false" }) - } - fn serialize_str(self, value: &str) -> Result<(), Error> { self.urlencoder.append_pair(self.key, value); Ok(()) -- cgit v1.2.3