From ea5936aa78aeecdb5af1eb06f212338eb4151413 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Fri, 30 May 2014 23:18:01 -0700 Subject: [PATCH] Use the right show impl for Json --- json.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/json.rs b/json.rs index 1a091e04..89c2741f 100644 --- a/json.rs +++ b/json.rs @@ -252,7 +252,7 @@ use serialize; use serialize::{Encoder, Encodable}; /// Represents a json value -#[deriving(Clone, Eq, Show)] +#[deriving(Clone, Eq)] pub enum Json { Null, Boolean(bool), @@ -2533,14 +2533,12 @@ impl ToJson for Option { } } -/* impl fmt::Show for Json { /// Encodes a json value into a string fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.to_writer(f).map_err(|_| fmt::WriteError) } } -*/ #[cfg(test)] mod tests {