From c45e0d7005990aa28acb823a5db5c43bd9541a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Mauduit?= Date: Fri, 10 Aug 2018 17:43:26 +0200 Subject: [PATCH] Nothing more... --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 34ca7a5..78cd88a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -236,7 +236,7 @@ fn main() { })); } for child in children { - let _ = child.join(); + child.join(); } // compute file hash in parallel @@ -250,8 +250,7 @@ fn main() { println!("Use {} chunk(s) of size {}", num_cpus - modulus, chunk_size - 1); let mut guards = vec![]; - let fc = files_candidate.clone(); - let mut work = fc.lock().unwrap(); + let mut work = files_candidate.clone().lock().unwrap(); // Example from : // https://stackoverflow.com/questions/33818141/how-do-i-pass-disjoint-slices-from-a-vector-to-different-threads