@@ -3,7 +3,7 @@ use std::{
33 env, // Environment variables and command-line arguments
44 fs:: File , // File handling
55 io:: { BufReader , Read } , // Buffered reading
6- path:: PathBuf , // Path manipulation
6+ path:: PathBuf , // Path manipulation
77 sync:: Arc , // Atomic Reference Counted pointer for thread-safe sharing
88 thread, // Thread management
99 time:: Instant , // Time measurement
@@ -150,8 +150,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
150150 let md5_handle = thread:: spawn ( move || {
151151 compute_hash (
152152 md5_rx,
153- || Context :: new ( ) , // initialize MD5 context
154- |context, data| context. consume ( data) , // update with data
153+ || Context :: new ( ) , // initialize MD5 context
154+ |context, data| context. consume ( data) , // update with data
155155 |context| format ! ( "{:x}" , context. compute( ) ) , // finalize and format
156156 )
157157 } ) ;
@@ -386,8 +386,8 @@ mod tests {
386386
387387 let result = compute_hash (
388388 rx,
389- || Context :: new ( ) , // initialize MD5 context
390- |context, data| context. consume ( data) , // update with data
389+ || Context :: new ( ) , // initialize MD5 context
390+ |context, data| context. consume ( data) , // update with data
391391 |context| format ! ( "{:x}" , context. compute( ) ) , // finalize and format
392392 ) ;
393393
0 commit comments