From fe10bdde7d787424d5796488b09923ffd2fdd9ef Mon Sep 17 00:00:00 2001 From: networkException Date: Sun, 10 Apr 2022 21:52:55 +0200 Subject: [PATCH] Main: Remove unnecessary return statement --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5676b67..310c599 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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() {