From 2deca5840e108826d6aac9dfd6a1865edd957466 Mon Sep 17 00:00:00 2001 From: Eunchong Yu Date: Tue, 1 Apr 2014 02:37:38 +0900 Subject: [PATCH] Json doesn't need to depend on IoError to implement Encodable #13230 --- src/libserialize/json.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs index 949275be7ca..996d17fd88f 100644 --- a/src/libserialize/json.rs +++ b/src/libserialize/json.rs @@ -732,8 +732,8 @@ impl<'a> ::Encoder for PrettyEncoder<'a> { } } -impl> Encodable for Json { - fn encode(&self, e: &mut E) -> EncodeResult { +impl, S> Encodable for Json { + fn encode(&self, e: &mut E) -> Result<(), S> { match *self { Number(v) => v.encode(e), String(ref v) => v.encode(e),