scanner: Don't reset progress when the iterator has yet to complete

This commit is contained in:
David Wendt 2021-09-11 11:59:29 -04:00 committed by Mike Welsh
parent 400938180b
commit a180aba613
1 changed files with 1 additions and 3 deletions

View File

@ -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(())