Fix using empty hash (#140)
This commit is contained in:
parent
e7aeebf701
commit
33545dfa22
|
@ -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…
Reference in a new issue