diff --git a/src/utility/bitmap.rs b/src/utility/bitmap.rs index d66dd2e..4af76a1 100644 --- a/src/utility/bitmap.rs +++ b/src/utility/bitmap.rs @@ -20,15 +20,13 @@ impl BitMap { /// ### Parameters /// - **nitems** is the number of bits in the bitmap. ///---------------------------------------------------------------------- - pub fn init_bitmap(&self, n_items: usize) -> BitMap { + pub fn init_bitmap(n_items: usize) -> BitMap { let mut tmp: Vec; BitMap{ num_bits: n_items, num_words: (n_items + SECTOR_SIZE as usize -1) / SECTOR_SIZE as usize, map: tmp, - }; - - *self + } } /// Set the "nth" bit in a bitmap.