From f5f5e1cb2d01a22f170432e73b9c5757380cc18b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 23 Jul 2015 20:54:47 -0700 Subject: [PATCH] fix(headers): fix broken deserialization of headers Sorry about that! --- src/header/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/header/mod.rs b/src/header/mod.rs index aeb44fd395..e84bf37e32 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -382,9 +382,7 @@ impl Deserialize for Headers { } } - let result = Headers::new(); - try!(deserializer.visit_map(HeadersVisitor)); - Ok(result) + deserializer.visit_map(HeadersVisitor) } }