diff --git a/benches/xor_bench.rs b/benches/xor_bench.rs index a792a89..bfa57e4 100644 --- a/benches/xor_bench.rs +++ b/benches/xor_bench.rs @@ -7,7 +7,7 @@ use rand::prelude::random; use rand::rngs::StdRng; use rand::Rng; use rand::SeedableRng; -use xorfilter::Xor8Builder; +use xorfilter::xor8::Xor8Builder; const SIZE: usize = 1_000_000; diff --git a/src/xor8_old.rs b/src/xor8_old.rs index 5c4092e..1d6da86 100644 --- a/src/xor8_old.rs +++ b/src/xor8_old.rs @@ -186,7 +186,7 @@ where H: BuildHasher pub fn build(&mut self) -> Result<()> { match self.keys.take() { Some(keys) => { - let digests = keys.iter().map(|(k, _)| *k).collect::>(); + let digests = keys.keys().copied().collect::>(); self.build_keys(&digests) } None => Ok(()),