Skip to content

Commit

Permalink
ProgressFolder shouldn't finish progress bars on completion
Browse files Browse the repository at this point in the history
ProgressFolders represent only a part of the whole iterator and
so shouldn't finish progress bars as they don't have knowledge
of the completion of the rest of folders and otherwise could
prematurely finish a progress bar
  • Loading branch information
mibac138 authored and djc committed May 21, 2021
1 parent 17a8e33 commit 3f49b0e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/rayon.rs
Expand Up @@ -180,9 +180,6 @@ impl<T, C: Folder<T>> Folder<T> for ProgressFolder<C> {
}

fn complete(self) -> C::Result {
if !self.progress.is_finished() {
self.progress.finish_using_style();
}
self.base.complete()
}

Expand Down

0 comments on commit 3f49b0e

Please sign in to comment.