diff --git a/src/serde/ser.rs b/src/serde/ser.rs index 4ebcc0d..bb5c326 100644 --- a/src/serde/ser.rs +++ b/src/serde/ser.rs @@ -376,7 +376,9 @@ where #[inline] fn serialize_struct(self, name: &'static str, len: usize) -> Result { match name { - crate::serde::number::TOKEN | crate::serde::raw::TOKEN => Ok(Compound::RawValue { ser: self }), + crate::serde::number::TOKEN | crate::serde::raw::TOKEN => { + Ok(Compound::RawValue { ser: self }) + } _ => self.serialize_map(Some(len)), } } diff --git a/src/util/string.rs b/src/util/string.rs index e4e50ca..efa41d1 100644 --- a/src/util/string.rs +++ b/src/util/string.rs @@ -622,7 +622,7 @@ pub fn quote(value: &str, dst: &mut [MaybeUninit]) -> usize { nb -= cn; dptr = dptr.add(cn); sptr = sptr.add(cn); - escape_unchecked(&mut sptr, &mut nb, &mut dptr); + escape_unchecked(&mut sptr, &mut nb, &mut dptr); } } *dptr = b'"';