diff --git a/src/model/serde_config.rs b/src/model/serde_config.rs index 81dd241..246f0dc 100644 --- a/src/model/serde_config.rs +++ b/src/model/serde_config.rs @@ -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", + )), } }