diff options
author | Jon Moroney <darakian@gmail.com> | 2019-09-25 10:38:02 -0700 |
---|---|---|
committer | Jon Moroney <darakian@gmail.com> | 2019-09-25 10:38:02 -0700 |
commit | f615ab85ee0ca9eb4549fea247cadf93869386f9 (patch) | |
tree | da041b9341e1632c6767b667a1b7aebc5861d6d4 | |
parent | 6fea9633da0950b5848927fb64bde72fb62db5aa (diff) |
Fix panic issue around unreadable files.win64
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -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" @@ -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) } |