Add type hint to hashset AND.

This commit is contained in:
Paul Hauner 2019-05-22 11:45:05 +10:00
parent 04791dfc58
commit 350dc1ad80
No known key found for this signature in database
GPG Key ID: 5E2CFF9B75FA63DF

View File

@ -41,7 +41,7 @@ fn verify_indexed_attestation_parametric<T: EthSpec>(
let custody_bit_1_indices = &indexed_attestation.custody_bit_1_indices;
// Ensure no duplicate indices across custody bits
let custody_bit_intersection =
let custody_bit_intersection: HashSet<&u64> =
&HashSet::from_iter(custody_bit_0_indices) & &HashSet::from_iter(custody_bit_1_indices);
verify!(
custody_bit_intersection.is_empty(),