File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 2661
2661
< span class ="kw "> let </ span > < span class ="kw-2 "> mut </ span > symlinked_files = HashSet::new();
2662
2662
2663
2663
< span class ="kw "> let </ span > progress_bar = < span class ="kw "> if </ span > options.progress_bar {
2664
- < span class ="prelude-val "> Some</ span > (
2665
- ProgressBar::new(disk_usage(sources, options.recursive)< span class ="question-mark "> ?</ span > )
2666
- .with_style(
2667
- ProgressStyle::with_template(
2668
- < span class ="string "> "{msg}: [{elapsed_precise}] {wide_bar} {bytes:>7}/{total_bytes:7}"</ span > ,
2669
- )
2670
- .unwrap(),
2664
+ < span class ="kw "> let </ span > pb = ProgressBar::new(disk_usage(sources, options.recursive)< span class ="question-mark "> ?</ span > )
2665
+ .with_style(
2666
+ ProgressStyle::with_template(
2667
+ < span class ="string "> "{msg}: [{elapsed_precise}] {wide_bar} {bytes:>7}/{total_bytes:7}"</ span > ,
2671
2668
)
2672
- .with_message(uucore::util_name()),
2673
- )
2669
+ .unwrap(),
2670
+ )
2671
+ .with_message(uucore::util_name());
2672
+ pb.tick();
2673
+ < span class ="prelude-val "> Some</ span > (pb)
2674
2674
} < span class ="kw "> else </ span > {
2675
2675
< span class ="prelude-val "> None
2676
2676
</ span > };
You can’t perform that action at this time.
0 commit comments