From 3d108877d468e91cabc8614bfb400e9a83211c6a Mon Sep 17 00:00:00 2001 From: fenfeng9 Date: Mon, 9 Feb 2026 02:00:25 +0800 Subject: [PATCH] refactor: correct panic message typos in OrderableScalarValue::cmp --- rust/lance-index/src/scalar/btree.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/lance-index/src/scalar/btree.rs b/rust/lance-index/src/scalar/btree.rs index 469092f962a..bf44a9d5b97 100644 --- a/rust/lance-index/src/scalar/btree.rs +++ b/rust/lance-index/src/scalar/btree.rs @@ -271,7 +271,7 @@ impl Ord for OrderableScalarValue { Ordering::Greater } } - (Int64(_), _) => panic!("Attempt to compare Int16 with non-Int64"), + (Int64(_), _) => panic!("Attempt to compare Int64 with non-Int64"), (UInt8(v1), UInt8(v2)) => v1.cmp(v2), (UInt8(v1), Null) => { if v1.is_none() { @@ -307,7 +307,7 @@ impl Ord for OrderableScalarValue { Ordering::Greater } } - (UInt64(_), _) => panic!("Attempt to compare Int16 with non-UInt64"), + (UInt64(_), _) => panic!("Attempt to compare UInt64 with non-UInt64"), (Utf8(v1) | Utf8View(v1) | LargeUtf8(v1), Utf8(v2) | Utf8View(v2) | LargeUtf8(v2)) => { v1.cmp(v2) }