Skip to content

Commit

Permalink
fix(headers): fix broken deserialization of headers
Browse files Browse the repository at this point in the history
Sorry about that!
  • Loading branch information
pcwalton committed Jul 24, 2015
1 parent aaf7995 commit f5f5e1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,7 @@ impl Deserialize for Headers {
}
}

let result = Headers::new();
try!(deserializer.visit_map(HeadersVisitor));
Ok(result)
deserializer.visit_map(HeadersVisitor)
}
}

Expand Down

0 comments on commit f5f5e1c

Please sign in to comment.