fixup! Ancestors to HashSet: From(Vec) (#17447) (#17481)

This commit is contained in:
steviez 2021-05-25 12:24:34 -05:00 committed by GitHub
parent 0dbe926efe
commit a5c2067273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ impl From<Vec<Slot>> for Ancestors {
});
let range = result.range();
if range > ANCESTORS_HASH_MAP_SIZE {
result.large_range_slots = source.into_iter().map(|(slot, _)| slot).collect();
result.large_range_slots = source.into_iter().collect();
result.min = 0;
result.max = 0;
} else {