Address grumbles

This commit is contained in:
David Palm 2018-07-09 16:12:50 +02:00
parent beafa8f2df
commit 43ba23969e
1 changed files with 6 additions and 6 deletions

View File

@ -137,11 +137,11 @@ pub fn sec_trie_root<H, I, A, B>(input: I) -> H::Out
let gen_input: Vec<_> = input
// first put elements into btree to sort them and to remove duplicates
.into_iter()
.map(|(k, v)| (H::hash(&k.as_ref()), v))
.map(|(k, v)| (H::hash(k.as_ref()), v))
.collect::<BTreeMap<_, _>>()
// then move them to a vector
.into_iter()
.map(|(k, v)| (as_nibbles(&k.as_ref()), v) )
.map(|(k, v)| (as_nibbles(k.as_ref()), v) )
.collect();
gen_trie_root::<H, _, _>(&gen_input)