From 3f49b0e9ecd56397401f0718835a444273154ef6 Mon Sep 17 00:00:00 2001 From: mibac138 <5672750+mibac138@users.noreply.github.com> Date: Fri, 21 May 2021 12:45:53 +0200 Subject: [PATCH] ProgressFolder shouldn't finish progress bars on completion 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 --- src/rayon.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/rayon.rs b/src/rayon.rs index 814f75a8..771e28fc 100644 --- a/src/rayon.rs +++ b/src/rayon.rs @@ -180,9 +180,6 @@ impl> Folder for ProgressFolder { } fn complete(self) -> C::Result { - if !self.progress.is_finished() { - self.progress.finish_using_style(); - } self.base.complete() }