Skip to content

Commit

Permalink
clippy fixes and benchcase fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
prataprc committed Dec 15, 2022
1 parent ce5f0b4 commit 6630c2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/xor_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/xor8_old.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<u64>>();
let digests = keys.keys().copied().collect::<Vec<u64>>();
self.build_keys(&digests)
}
None => Ok(()),
Expand Down

0 comments on commit 6630c2f

Please sign in to comment.