From 7493a448a638a097e02591309365a1cf66bafafa Mon Sep 17 00:00:00 2001 From: Mr-Andersen Date: Wed, 25 Sep 2019 20:14:52 +0300 Subject: [PATCH] _ -> false --- src/types/unit_true.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`")) } } }