diff --git a/eth2/state_processing/tests/tests.rs b/eth2/state_processing/tests/tests.rs index ccad198bb..6491e255a 100644 --- a/eth2/state_processing/tests/tests.rs +++ b/eth2/state_processing/tests/tests.rs @@ -27,7 +27,7 @@ impl ExpectedState { ($field_name:ident) => { if self.$field_name.as_ref().map_or(true, |$field_name| { println!(" > Checking {}", stringify!($field_name)); - &state.$field_name == $field_name + $field_name == &state.$field_name }) { vec![] } else { diff --git a/eth2/types/src/tree_hash_vector.rs b/eth2/types/src/tree_hash_vector.rs index 9b77e13dc..1cc8e40a5 100644 --- a/eth2/types/src/tree_hash_vector.rs +++ b/eth2/types/src/tree_hash_vector.rs @@ -33,12 +33,6 @@ impl DerefMut for TreeHashVector { } } -impl PartialEq> for TreeHashVector { - fn eq(&self, other: &Vec) -> bool { - &self.0 == other - } -} - impl tree_hash::TreeHash for TreeHashVector where T: TreeHash,