Skip to content
Snippets Groups Projects
Commit af36dc6f authored by vlorentz's avatar vlorentz
Browse files

Make CountingProgressLogger actually count updates

parent 84d80f45
No related branches found
No related tags found
No related merge requests found
......@@ -170,15 +170,19 @@ impl<T: DerefMut<Target: ProgressLog>> CountingProgressLogger<T> {
impl<T: DerefMut<Target: ProgressLog>> MinimalProgressLog for CountingProgressLogger<T> {
fn update(&mut self) {
self.count += 1;
self.inner.update()
}
fn update_with_count(&mut self, count: usize) {
self.count += count;
self.inner.update_with_count(count)
}
fn light_update(&mut self) {
self.count += 1;
self.inner.light_update()
}
fn update_and_display(&mut self) {
self.count += 1;
self.inner.update_and_display()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment