Skip to content

Commit

Permalink
Support serializing flattened unit
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 10, 2020
1 parent 26186bd commit ba07075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde/src/private/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ where
}

fn serialize_unit(self) -> Result<Self::Ok, Self::Error> {
Err(Self::bad_type(Unsupported::Unit))
Ok(())
}

fn serialize_unit_struct(self, _: &'static str) -> Result<Self::Ok, Self::Error> {
Expand Down

0 comments on commit ba07075

Please sign in to comment.