From f21b73d1f6d601cfb3bc999e2757d900ec19984f Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Tue, 21 Jun 2022 15:52:43 +0900 Subject: [PATCH] Apply suggestions from code review --- src/fastfield/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastfield/mod.rs b/src/fastfield/mod.rs index dd0e51577..c69189747 100644 --- a/src/fastfield/mod.rs +++ b/src/fastfield/mod.rs @@ -162,7 +162,7 @@ impl FastValue for f64 { impl FastValue for bool { fn from_u64(val: u64) -> Self { - !matches!(val, 0) + val != 0u64 } fn to_u64(&self) -> u64 {