refactor: update Progress bar: progress.rs

Remove none-needed macro
This commit is contained in:
andy.boot
2023-01-13 00:42:25 +00:00
parent 400ff513f4
commit 29957c1f2c
2 changed files with 43 additions and 48 deletions
+4 -1
View File
@@ -183,7 +183,9 @@ fn main() {
use_iso: iso,
ignore_hidden, // can we rm this?
};
Some(PIndicator::spawn(conf))
let mut indicator = PIndicator::build_me(conf);
indicator.spawn();
Some(indicator)
};
// Must be a cleaner way to do this
@@ -201,6 +203,7 @@ fn main() {
by_filecount,
ignore_hidden,
follow_links,
// Maybe just arc::clone the whole PIndicator and send that down here:
progress_config: tmp_config,
progress_data: tmp_data,
};