Main: Fix typo in comment
This commit is contained in:
parent
8f646713ef
commit
a5b576108e
2 changed files with 2 additions and 2 deletions
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
BSD 2-Clause License
|
BSD 2-Clause License
|
||||||
|
|
||||||
Copyright (c) 2022, networkException
|
Copyright (c) 2022, networkException <git@nwex.de>
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -81,7 +81,7 @@ fn run() -> Result<()> {
|
||||||
|
|
||||||
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 faster compared to sha256::digest_file
|
||||||
let mut hasher = Sha256::new();
|
let mut hasher = Sha256::new();
|
||||||
let mut file = File::open(path)?;
|
let mut file = File::open(path)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue