Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix serialize_key of 1-entry maps
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 2, 2022
1 parent 5299f1e commit f7b55f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ser.rs
Expand Up @@ -635,8 +635,8 @@ where
T: ?Sized + ser::Serialize,
{
if let State::CheckForTag = self.state {
self.emit_mapping_start()?;
self.state = State::NothingInParticular;
self.emit_mapping_start()?;
}
key.serialize(&mut **self)
}
Expand Down

0 comments on commit f7b55f1

Please sign in to comment.