From 350dc1ad80f5da0e6c6bea1abfd2afbbe2015c44 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 22 May 2019 11:45:05 +1000 Subject: [PATCH] Add type hint to hashset `AND`. --- .../src/per_block_processing/verify_indexed_attestation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth2/state_processing/src/per_block_processing/verify_indexed_attestation.rs b/eth2/state_processing/src/per_block_processing/verify_indexed_attestation.rs index 50a943b53e..adaf336ccf 100644 --- a/eth2/state_processing/src/per_block_processing/verify_indexed_attestation.rs +++ b/eth2/state_processing/src/per_block_processing/verify_indexed_attestation.rs @@ -41,7 +41,7 @@ fn verify_indexed_attestation_parametric( 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(),