Description: Fix tests when using hamming-rs 0.2.25 Inspired from https://github.com/emschwartz/hamming-bitwise-fast/commit/f35e3f07337ced8fa9908e090a32e3f2af2f3535 --- a/benches/hamming.rs +++ b/benches/hamming.rs @@ -44,7 +44,7 @@ group.bench_with_input( BenchmarkId::new("hamming_rs", size), &size, - distance_bench(hamming_rs::distance_faster), + distance_bench(hamming_rs::distance), ); group.bench_with_input( BenchmarkId::new("simsimd", size), --- a/src/lib.rs +++ b/src/lib.rs @@ -82,7 +82,7 @@ // Compare with hamming_rs crate (x86/x86_64 only) #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] - assert_eq!(expected, hamming_rs::distance_faster(&a, &b)); + assert_eq!(expected, hamming_rs::distance(&a, &b)); // Compare with simsimd crate assert_eq!(