Skip to content

Commit

Permalink
Commenting out the diagnostic code
Browse files Browse the repository at this point in the history
  • Loading branch information
lookbusy1344 committed Apr 2, 2024
1 parent e58265d commit e96964c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ fn hash_file<D: Digest>(filename: &str) -> anyhow::Result<Output<D>> {

// ==== diagnostic code to check if buffer is zeroed
// count elements in buffer that are not zero
let non_zero_count = buffer.iter().filter(|&&x| x != 0).count();
if non_zero_count != 0 {
eprintln!("Buffer not zeroed {non_zero_count} out of {buffersize} in file {filename}");
}
// let non_zero_count = buffer.iter().filter(|&&x| x != 0).count();
// if non_zero_count != 0 {
// eprintln!("Buffer not zeroed {non_zero_count} out of {buffersize} in file {filename}");
// }
// ==== end of diagnostic code

let mut hasher = D::new();
Expand Down

0 comments on commit e96964c

Please sign in to comment.