Skip to content

Commit

Permalink
Merge pull request #736 from debris/serde_up
Browse files Browse the repository at this point in the history
refactor(headers): updated serde to version 0.7
  • Loading branch information
seanmonstar committed Mar 9, 2016
2 parents 3dcb869 + 33d5da2 commit d1f9f5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ version = "0.4"
default-features = false

[dependencies.serde]
version = "0.6"
version = "0.7"
optional = true

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl fmt::Debug for Headers {
#[cfg(feature = "serde-serialization")]
impl Serialize for Headers {
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer {
serializer.visit_map(ser::impls::MapIteratorVisitor::new(
serializer.serialize_map(ser::impls::MapIteratorVisitor::new(
self.iter().map(|header| (header.name(), header.value_string())),
Some(self.len()),
))
Expand All @@ -375,7 +375,7 @@ impl Deserialize for Headers {
}
}

deserializer.visit_map(HeadersVisitor)
deserializer.deserialize_map(HeadersVisitor)
}
}

Expand Down

0 comments on commit d1f9f5f

Please sign in to comment.