Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
remove unneeded iterator bound on ordered_trie_root (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier authored and gavofyork committed Jan 20, 2019
1 parent 78bb4c0 commit ec38ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/trie/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ pub fn unhashed_trie<H: Hasher, I, A, B>(input: I) -> Vec<u8> where
/// compact-encoded index (using `parity-codec` crate).
pub fn ordered_trie_root<H: Hasher, I, A>(input: I) -> H::Out
where
I: IntoIterator<Item = A> + Iterator<Item = A>,
I: IntoIterator<Item = A>,
A: AsRef<[u8]>,
{
trie_root::<H, _, _, _>(input
.into_iter()
.enumerate()
.map(|(i, v)| (codec::Encode::encode(&codec::Compact(i as u32)), v))
)
Expand Down

0 comments on commit ec38ea3

Please sign in to comment.