🏡 index : ~doyle/serde_bson.git

Diff

 src/lib.rs | 2 ++
 src/ser.rs | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib.rs b/src/lib.rs
index 0168b00..aeefa00 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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,
            },
        };

diff --git a/src/ser.rs b/src/ser.rs
index d22f015..adb7afc 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -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(())
    }