Skip to content

Commit

Permalink
Removed unnecessary braces
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCAB0 committed Nov 3, 2024
1 parent edd36c2 commit 39ea49f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/model/serde_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ where
"expected an integer for optional boolean field",
));
};
{
match i {
0 => Ok(Some(false)),
1 => Ok(Some(true)),
_ => Err(serde::de::Error::custom(
"expected 0 or 1 for optional boolean field",
)),
}

match i {
0 => Ok(Some(false)),
1 => Ok(Some(true)),
_ => Err(serde::de::Error::custom(
"expected 0 or 1 for optional boolean field",
)),
}
}

Expand Down

0 comments on commit 39ea49f

Please sign in to comment.