Fix custom derive macros (#621)

This commit is contained in:
Pawan Dhananjay 2019-11-24 06:30:49 +05:30 committed by Paul Hauner
parent 0c1e27ec13
commit 3ca63cfa83
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ pub fn ssz_decode_derive(input: TokenStream) -> TokenStream {
} }
} }
fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, ssz::DecodeError> { fn from_ssz_bytes(bytes: &[u8]) -> std::result::Result<Self, ssz::DecodeError> {
let mut builder = ssz::SszDecoderBuilder::new(bytes); let mut builder = ssz::SszDecoderBuilder::new(bytes);
#( #(

View File

@ -246,7 +246,7 @@ pub fn cached_tree_hash_derive(input: TokenStream) -> TokenStream {
fn recalculate_tree_hash_root( fn recalculate_tree_hash_root(
&self, &self,
cache: &mut #cache_type) cache: &mut #cache_type)
-> Result<Hash256, cached_tree_hash::Error> -> std::result::Result<Hash256, cached_tree_hash::Error>
{ {
let mut leaves = vec![]; let mut leaves = vec![];