questionable patch for TreeHashVector

This commit is contained in:
Michael Sproul
2019-04-17 11:29:06 +10:00
parent d95ae95ce8
commit 701cc00d08
2 changed files with 7 additions and 1 deletions

View File

@@ -33,6 +33,12 @@ 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>
where
T: TreeHash,