Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ha458 authored and PureWhiteWu committed Oct 18, 2023
1 parent d1ba462 commit a93b572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/serde/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ where
#[inline]
fn serialize_struct(self, name: &'static str, len: usize) -> Result<Self::SerializeStruct> {
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)),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ pub fn quote(value: &str, dst: &mut [MaybeUninit<u8>]) -> 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'"';
Expand Down

0 comments on commit a93b572

Please sign in to comment.