add an extra comma when serializing structs

This commit is contained in:
Aloke Desai
2021-12-01 12:29:44 -05:00
parent e59ed63212
commit 7b5114d8bc
+1
View File
@@ -366,6 +366,7 @@ impl<W: Write> ser::SerializeStruct for &mut Uneval<W> {
}
fn end(self) -> SerResult {
self.comma()?;
write!(self.writer, "}}")?;
Ok(())
}