Skip to content

Commit

Permalink
Merge pull request #617 from pcwalton/serde-fix
Browse files Browse the repository at this point in the history
Fix broken deserialization of headers.
  • Loading branch information
reem committed Jul 24, 2015
2 parents aaf7995 + f5f5e1c commit 7e92633
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 7e92633

Please sign in to comment.