Skip to content

Commit

Permalink
Merge pull request #1839 from dtolnay/entry
Browse files Browse the repository at this point in the history
Forward serialize_entry on flattened maps
  • Loading branch information
dtolnay committed Jun 14, 2020
2 parents 95b1a5d + 97962d5 commit e8fd2c8
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 e8fd2c8

Please sign in to comment.