summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Moroney <darakian@gmail.com>2019-09-25 10:38:02 -0700
committerJon Moroney <darakian@gmail.com>2019-09-25 10:38:02 -0700
commitf615ab85ee0ca9eb4549fea247cadf93869386f9 (patch)
treeda041b9341e1632c6767b667a1b7aebc5861d6d4
parent6fea9633da0950b5848927fb64bde72fb62db5aa (diff)
Fix panic issue around unreadable files.win64
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 01cedc1..9dbc7af 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ddh"
-version = "0.10.5"
+version = "0.10.6"
authors = ["Jon Moroney <jmoroney@hawaii.edu>"]
edition = "2018"
description = "Compare and contrast directories"
diff --git a/src/lib.rs b/src/lib.rs
index 3ba2b0d..2bcbbd8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -253,8 +253,7 @@ fn differentiate_and_consolidate(file_length: u64, mut files: Vec<Fileinfo>) ->
});
if file_length<=4096{
files.par_iter_mut().for_each(|x|{
- let hash = x.get_partial_hash().unwrap();
- x.set_full_hash(Some(hash)) ;
+ x.set_full_hash(x.get_partial_hash()) ;
});
return dedupe(files)
}