Skip to content

Commit

Permalink
Typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Sep 20, 2024
1 parent deb015f commit a31ad47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/serde/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ struct DecoderWrapper<'a, 'de> {

macro_rules! specify {
($self:ident, $variant:ident) => {{
#[rustfmt::skip]
match &mut $self.decoder {
// Check if it's already the correct decoder. This results in 1 branch in the hot path.
SerdeDecoder::$variant(_) => (),
Expand Down
1 change: 0 additions & 1 deletion src/serde/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ impl LazyEncoder {
macro_rules! specify {
($wrapper:ident, $variant:ident) => {{
let lazy = &mut *$wrapper.lazy;
#[rustfmt::skip]
match lazy {
// Check if it's already the correct encoder. This results in 1 branch in the hot path.
LazyEncoder::Specified { specified: SpecifiedEncoder::$variant(_), .. } => (),
Expand Down

0 comments on commit a31ad47

Please sign in to comment.