1
0
Fork 0
mirror of synced 2024-05-15 01:42:27 +12:00

Fix duplicated entries when using fast compare option (#557)

This commit is contained in:
Rafał Mikrut 2022-01-04 10:46:23 +01:00 committed by GitHub
parent 0e00544af4
commit 2c725e8e68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -727,8 +727,8 @@ impl SimilarImages {
.filter(|(_similarity, hash)| !master_of_group.contains(*hash) && available_hashes.contains_key(*hash))
.collect::<Vec<_>>();
// Not found any hash with specific distance
if vector_with_found_similar_hashes.is_empty() {
// Not found any hash with specific distance maybe except self
if vector_with_found_similar_hashes.len() <= 1 {
continue;
}