Skip to content

Commit 788ba87

Browse files
committed
Don't track progress of individual parents, it's inconsistent and not very useful
1 parent d5a3276 commit 788ba87

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/status_emitter.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ impl Text {
259259
spinner.finish();
260260
}
261261
let parent = children[""].0.clone();
262-
if !msg.is_empty() {
263-
parent.inc(1);
264-
}
265262
if children.values().all(|&(_, done)| done) {
266263
self.bars.remove(&parent);
267264
if print {
@@ -297,13 +294,11 @@ impl Text {
297294
.bars
298295
.add(ProgressBar::new_spinner().with_prefix(parent));
299296
spinner.set_style(
300-
ProgressStyle::with_template("{prefix} {pos}/{len} {msg}")
301-
.unwrap(),
297+
ProgressStyle::with_template("{prefix} {msg}").unwrap(),
302298
);
303299
(spinner, true)
304300
})
305301
.0;
306-
parent.inc_length(1);
307302
let spinner = self.bars.insert_after(
308303
parent,
309304
ProgressBar::new_spinner().with_prefix(msg.clone()),

0 commit comments

Comments
 (0)