Diff
src/lib.rs | 2 ++
src/ser.rs | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
@@ -63,6 +63,7 @@ mod test {
e4: Test,
t: (i32, i32, i32),
ts: Tup,
y: bool,
}
let test = &A {
@@ -78,6 +79,7 @@ mod test {
e4: Test::Jkl { a: 16, b: 07 },
t: (16, 07, 1999),
ts: Tup(99, 100),
y: false,
},
};
@@ -35,7 +35,7 @@ impl<'a, B: BytesLikeBuf> serde::Serializer for Serializer<'a, B> {
type SerializeStructVariant = StructVariantSerializer<'a, B>;
fn serialize_bool(self, v: bool) -> Result<Self::Ok, Self::Error> {
write_key_or_error!(0x01, self.key, self.output);
write_key_or_error!(0x08, self.key, self.output);
self.output.put_u8(v as u8);
Ok(())
}