1
0
Fork 0
mirror of synced 2024-05-01 11:02:53 +12:00

Fix using empty hash (#140)

This commit is contained in:
Rafał Mikrut 2020-12-27 14:42:26 +01:00 committed by GitHub
parent e7aeebf701
commit 33545dfa22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)))
})