File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -259,9 +259,6 @@ impl Text {
259
259
spinner. finish ( ) ;
260
260
}
261
261
let parent = children[ "" ] . 0 . clone ( ) ;
262
- if !msg. is_empty ( ) {
263
- parent. inc ( 1 ) ;
264
- }
265
262
if children. values ( ) . all ( |& ( _, done) | done) {
266
263
self . bars . remove ( & parent) ;
267
264
if print {
@@ -297,13 +294,11 @@ impl Text {
297
294
. bars
298
295
. add ( ProgressBar :: new_spinner ( ) . with_prefix ( parent) ) ;
299
296
spinner. set_style (
300
- ProgressStyle :: with_template ( "{prefix} {pos}/{len} {msg}" )
301
- . unwrap ( ) ,
297
+ ProgressStyle :: with_template ( "{prefix} {msg}" ) . unwrap ( ) ,
302
298
) ;
303
299
( spinner, true )
304
300
} )
305
301
. 0 ;
306
- parent. inc_length ( 1 ) ;
307
302
let spinner = self . bars . insert_after (
308
303
parent,
309
304
ProgressBar :: new_spinner ( ) . with_prefix ( msg. clone ( ) ) ,
You can’t perform that action at this time.
0 commit comments