Forward serialize_entry on flattened maps

This commit is contained in:
David Tolnay 2020-06-14 11:10:11 -07:00
parent 95b1a5d3d9
commit 97962d51e2
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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(())
}