Did something.

This commit is contained in:
2018-09-10 21:02:03 +02:00
parent 27eb6b2a2c
commit acbd977941
2 changed files with 13 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ where
pub fn with_capacity(capacity: usize) -> BitSet<B> {
BitSet {
blocks: HashMap::with_capacity_and_hasher(
capacity / B::bits() as usize,
capacity / B::BITS as usize,
Default::default(),
),
nbits: 0,
@@ -60,11 +60,11 @@ where
#[inline]
pub fn capacity(&self) -> usize {
self.blocks.capacity() * B::bits() as usize
self.blocks.capacity() * B::BITS as usize
}
pub fn reserve(&mut self, additional: usize) {
self.blocks.reserve(additional / B::bits() as usize)
self.blocks.reserve(additional / B::BITS as usize)
}
pub fn shrink_to_fit(&mut self) {