scanner: Don't reset progress when the iterator has yet to complete
This commit is contained in:
parent
400938180b
commit
a180aba613
|
@ -132,7 +132,7 @@ pub fn scan_main(opt: ScanOpt) -> Result<(), std::io::Error> {
|
|||
);
|
||||
|
||||
let input_path = opt.input_path;
|
||||
let closure_progress = progress.clone();
|
||||
let closure_progress = progress;
|
||||
|
||||
let result_iter = to_scan
|
||||
.into_par_iter()
|
||||
|
@ -158,8 +158,6 @@ pub fn scan_main(opt: ScanOpt) -> Result<(), std::io::Error> {
|
|||
result
|
||||
});
|
||||
|
||||
progress.finish();
|
||||
|
||||
analyze(result_iter);
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue