diff --git a/src/lib.rs b/src/lib.rs index 835f37a..b011330 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,9 +19,6 @@ use hasher::BitBuildHasher; const BITS: u64 = 64; -type Block = u64; -type Storage = HashMap; - pub type BitHashMap = HashMap; #[inline] @@ -31,7 +28,7 @@ fn block_bit(x: u64, d: u64) -> (u64, u64) { #[derive(PartialEq, Eq, Clone)] pub struct BitSet { - blocks: Storage, + blocks: HashMap, nbits: usize, } @@ -39,7 +36,7 @@ impl BitSet { #[inline] pub fn new() -> BitSet { BitSet { - blocks: Storage::default(), + blocks: HashMap::default(), nbits: 0, } } @@ -47,7 +44,7 @@ impl BitSet { #[inline] pub fn with_capacity(capacity: usize) -> BitSet { BitSet { - blocks: Storage::with_capacity_and_hasher(capacity / BITS as usize, Default::default()), + blocks: HashMap::with_capacity_and_hasher(capacity / BITS as usize, Default::default()), nbits: 0, } }