Skip to content

Commit

Permalink
Forward serialize_entry on flattened maps
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 14, 2020
1 parent 95b1a5d commit 97962d5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions serde/src/private/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,18 @@ where
self.0.serialize_value(value)
}

fn serialize_entry<K: ?Sized, V: ?Sized>(
&mut self,
key: &K,
value: &V,
) -> Result<(), Self::Error>
where
K: Serialize,
V: Serialize,
{
self.0.serialize_entry(key, value)
}

fn end(self) -> Result<(), Self::Error> {
Ok(())
}
Expand Down

0 comments on commit 97962d5

Please sign in to comment.