Revert "questionable patch for TreeHashVector"
This reverts commit 701cc00d08
.
This commit is contained in:
parent
745d360566
commit
332795e8b7
@ -27,7 +27,7 @@ impl ExpectedState {
|
|||||||
($field_name:ident) => {
|
($field_name:ident) => {
|
||||||
if self.$field_name.as_ref().map_or(true, |$field_name| {
|
if self.$field_name.as_ref().map_or(true, |$field_name| {
|
||||||
println!(" > Checking {}", stringify!($field_name));
|
println!(" > Checking {}", stringify!($field_name));
|
||||||
&state.$field_name == $field_name
|
$field_name == &state.$field_name
|
||||||
}) {
|
}) {
|
||||||
vec![]
|
vec![]
|
||||||
} else {
|
} else {
|
||||||
|
@ -33,12 +33,6 @@ impl<T> DerefMut for TreeHashVector<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: PartialEq> PartialEq<Vec<T>> for TreeHashVector<T> {
|
|
||||||
fn eq(&self, other: &Vec<T>) -> bool {
|
|
||||||
&self.0 == other
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T> tree_hash::TreeHash for TreeHashVector<T>
|
impl<T> tree_hash::TreeHash for TreeHashVector<T>
|
||||||
where
|
where
|
||||||
T: TreeHash,
|
T: TreeHash,
|
||||||
|
Loading…
Reference in New Issue
Block a user