Main: Remove unnecessary return statement
This commit is contained in:
parent
26313c4c7e
commit
fe10bdde7d
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ fn run() -> Result<()> {
|
|||
|
||||
let pool = ThreadPoolBuilder::new().num_threads(args.jobs as usize).build().unwrap();
|
||||
|
||||
return pool.install(|| {
|
||||
pool.install(|| {
|
||||
return hashed_files.par_iter().progress_with(progress_bar).try_for_each(|path| -> Result<()> {
|
||||
// Just opening the file and hashing using io::copy is roughly ~2.5x fater compared to sha256::digest_file
|
||||
let mut hasher = Sha256::new();
|
||||
|
@ -79,7 +79,7 @@ fn run() -> Result<()> {
|
|||
|
||||
Ok(())
|
||||
});
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue