Fix using empty hash (#140)

pull/154/head
Rafał Mikrut 3 years ago committed by GitHub
parent e7aeebf701
commit 33545dfa22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -418,6 +418,7 @@ impl SimilarImages {
let hash = hasher.hash_image(&image);
let mut buf = [0u8; 8];
buf.copy_from_slice(&hash.as_bytes());
file_entry.hash = buf;
Some(Some((file_entry, buf)))
})

Loading…
Cancel
Save