From 5b76a25932045131f7c883a9bcddb1a6809757db Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 20 Oct 2022 15:54:35 +0100 Subject: [PATCH] Ensure equals comparator function never reeaches unreachable code Closes #1360 --- lib/src/sql/value/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sql/value/value.rs b/lib/src/sql/value/value.rs index 2899618b..cb38a4a6 100644 --- a/lib/src/sql/value/value.rs +++ b/lib/src/sql/value/value.rs @@ -1003,7 +1003,7 @@ impl Value { Value::Strand(_) => v == &other.to_datetime(), _ => false, }, - _ => unreachable!(), + _ => self == other, } }