Main: Remove unnecessary return statement

This commit is contained in:
networkException 2022-04-10 21:52:55 +02:00
parent 46dd5bf98d
commit 224439f04a
No known key found for this signature in database
GPG key ID: C1F2658DC370C8FC

View file

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