Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fixed bloom clear
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko committed Jan 23, 2019
1 parent 2836f3f commit cae41e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bloom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl<T: BloomHashIndex> Bloom<T> {
key.hash_at_index(k) % self.bits.len()
}
pub fn clear(&mut self) {
self.bits.clear();
self.bits = BitVec::new_fill(false, self.bits.len());
}
pub fn add(&mut self, key: &T) {
for k in &self.keys {
Expand Down

0 comments on commit cae41e7

Please sign in to comment.