diff --git a/src/types/unit_true.rs b/src/types/unit_true.rs index e2c9444b..0efe1b33 100644 --- a/src/types/unit_true.rs +++ b/src/types/unit_true.rs @@ -8,6 +8,7 @@ impl std::convert::TryFrom for True { type Error = (); fn try_from(value: bool) -> Result { + #[allow(clippy::match_bool)] match value { true => Ok(True), false => Err(()), @@ -37,6 +38,7 @@ impl<'de> Visitor<'de> for TrueVisitor { where E: de::Error, { + #[allow(clippy::match_bool)] match value { true => Ok(True), false => Err(E::custom("expected `true`, found `false`")),