optimize double map first key hash (#2451)

* fix double map encoding it is now encoded as specified in the doc
This commit is contained in:
thiolliere
2019-05-06 08:44:36 +02:00
committed by GitHub
parent 5a820db7f5
commit b0c21da94f
6 changed files with 89 additions and 16 deletions
@@ -234,16 +234,6 @@ impl HasherKind {
}
}
fn into_hashable_fn(&self) -> TokenStream2 {
match self {
HasherKind::Blake2_256 => quote!( blake2_256 ),
HasherKind::Blake2_128 => quote!( blake2_128 ),
HasherKind::Twox256 => quote!( twox_256 ),
HasherKind::Twox128 => quote!( twox_128 ),
HasherKind::Twox64Concat => quote!( twox_64_concat),
}
}
fn into_metadata(&self) -> TokenStream2 {
match self {
HasherKind::Blake2_256 => quote!( StorageHasher::Blake2_256 ),