Debian Codegraph @

debian/patches/support-hamming-rs-0.2.25.patch

raw symbols SCIP
1 Description: Fix tests when using hamming-rs 0.2.25
2 Inspired from https://github.com/emschwartz/hamming-bitwise-fast/commit/f35e3f07337ced8fa9908e090a32e3f2af2f3535
3 --- a/benches/hamming.rs
4 +++ b/benches/hamming.rs
5 @@ -44,7 +44,7 @@
6 group.bench_with_input(
7 BenchmarkId::new("hamming_rs", size),
8 &size,
9 - distance_bench(hamming_rs::distance_faster),
10 + distance_bench(hamming_rs::distance),
11 );
12 group.bench_with_input(
13 BenchmarkId::new("simsimd", size),
14 --- a/src/lib.rs
15 +++ b/src/lib.rs
16 @@ -82,7 +82,7 @@
17
18 // Compare with hamming_rs crate (x86/x86_64 only)
19 #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
20 - assert_eq!(expected, hamming_rs::distance_faster(&a, &b));
21 + assert_eq!(expected, hamming_rs::distance(&a, &b));
22
23 // Compare with simsimd crate
24 assert_eq!(