Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru committed Feb 27, 2024
1 parent 74f8d1d commit 4205628
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/impls/huffman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ where
}
}

fn reserve_regions<'a, I>(&mut self, regions: I)
fn reserve_regions<'a, I>(&mut self, _regions: I)
where
Self: 'a,
I: Iterator<Item = &'a Self> + Clone,
Expand All @@ -79,10 +79,14 @@ where
}

fn clear(&mut self) {
todo!()
match &mut self.inner {
Ok(_) => self.inner = Err(Vec::default()),
Err(vec) => vec.clear(),
}
self.stats.clear();
}

fn heap_size<F: FnMut(usize, usize)>(&self, callback: F) {
fn heap_size<F: FnMut(usize, usize)>(&self, _callback: F) {
todo!()
}
}
Expand All @@ -103,7 +107,7 @@ where
}
Err(raw) => {
let start = raw.len();
raw.extend_from_slice(&self);
raw.extend_from_slice(self);
(start, raw.len())
}
}
Expand Down

0 comments on commit 4205628

Please sign in to comment.