Main: Remove unnecessary return statement

This commit is contained in:
networkException 2022-04-10 21:52:55 +02:00
parent 26313c4c7e
commit fe10bdde7d
Signed by: networkException
GPG key ID: E3877443AE684391

View file

@ -60,7 +60,7 @@ fn run() -> Result<()> {
let pool = ThreadPoolBuilder::new().num_threads(args.jobs as usize).build().unwrap(); 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<()> { 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 // Just opening the file and hashing using io::copy is roughly ~2.5x fater compared to sha256::digest_file
let mut hasher = Sha256::new(); let mut hasher = Sha256::new();
@ -79,7 +79,7 @@ fn run() -> Result<()> {
Ok(()) Ok(())
}); });
}); })
} }
fn main() { fn main() {