Remove redundant type param fom CachedTreeHash

This commit is contained in:
Paul Hauner
2019-04-29 07:48:48 +10:00
parent 6258abfa9f
commit 0599d3f1f8
10 changed files with 26 additions and 30 deletions

View File

@@ -224,7 +224,7 @@ macro_rules! impl_ssz {
}
}
impl cached_tree_hash::CachedTreeHash<$type> for $type {
impl cached_tree_hash::CachedTreeHash for $type {
fn new_tree_hash_cache(
&self,
depth: usize,

View File

@@ -55,9 +55,9 @@ where
}
}
impl<T> CachedTreeHash<TreeHashVector<T>> for TreeHashVector<T>
impl<T> CachedTreeHash for TreeHashVector<T>
where
T: CachedTreeHash<T> + TreeHash,
T: CachedTreeHash + TreeHash,
{
fn new_tree_hash_cache(
&self,