Skip to content

Commit 871da0e

Browse files
committed
fix
1 parent add55c2 commit 871da0e

File tree

1 file changed

+1
-1
lines changed
  • src/query/expression/src/hilbert

1 file changed

+1
-1
lines changed

src/query/expression/src/hilbert/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use crate::hilbert::LUT;
3232
/// The function assumes that the dimension is between 2 and 5 and the points are correctly aligned according to the width.
3333
pub fn hilbert_index(point: &[&[u8]], width: usize) -> Vec<u8> {
3434
let n = point.len();
35-
debug_assert!((2..=5).contains(&n));
35+
assert!((2..=5).contains(&n));
3636

3737
let num_bits = width * 8;
3838
let total_bits = num_bits * n;

0 commit comments

Comments
 (0)