diff --git a/src/types/unit_true.rs b/src/types/unit_true.rs index e838df1f..dc20f839 100644 --- a/src/types/unit_true.rs +++ b/src/types/unit_true.rs @@ -34,7 +34,7 @@ impl<'de> Visitor<'de> for TrueVisitor { { match value { true => Ok(True), - _ => Err(E::custom("expected `true`, found `false`")) + false => Err(E::custom("expected `true`, found `false`")) } } }