Skip to content

Commit 1498941

Browse files
authored
remove redundant generic (#282)
1 parent fe876f8 commit 1498941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utilities/src/iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl<K: Decode + Sized, V: Decode + Sized, H: ReversibleStorageHasher> Iterator
7878
}
7979

8080
/// A strongly-typed map in storage whose keys and values can be iterated over.
81-
pub trait IterableStorageMapExtended<H, K: FullEncode, V: FullCodec>: StorageMap<K, V> {
81+
pub trait IterableStorageMapExtended<K: FullEncode, V: FullCodec>: StorageMap<K, V> {
8282
/// The type that iterates over all `(key, value)`.
8383
type Iterator: Iterator<Item = (K, V)>;
8484

@@ -92,7 +92,7 @@ pub trait IterableStorageMapExtended<H, K: FullEncode, V: FullCodec>: StorageMap
9292
fn drain(max_iterations: Option<u32>, start_key: Option<Vec<u8>>) -> Self::Iterator;
9393
}
9494

95-
impl<K: FullCodec, V: FullCodec, G: StorageMapT<K, V>> IterableStorageMapExtended<G::Hasher, K, V> for G
95+
impl<K: FullCodec, V: FullCodec, G: StorageMapT<K, V>> IterableStorageMapExtended<K, V> for G
9696
where
9797
G::Hasher: ReversibleStorageHasher,
9898
{

0 commit comments

Comments
 (0)