diff options
Diffstat (limited to 'src/file_sum')
-rw-r--r-- | src/file_sum/sum_computation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_sum/sum_computation.rs b/src/file_sum/sum_computation.rs index c997375..344f4a7 100644 --- a/src/file_sum/sum_computation.rs +++ b/src/file_sum/sum_computation.rs @@ -181,7 +181,7 @@ impl DirSummer { loop { let o = dirs_receiver.recv(); if let Ok(Some(open_dir)) = o { - if let Ok(entries) = fs::read_dir(&open_dir) { + if let Ok(entries) = fs::read_dir(open_dir) { for e in entries.flatten() { if let Ok(md) = e.metadata() { if md.is_dir() { |