From 3ca63cfa83054c6426ae746e9af0b1be06d9befc Mon Sep 17 00:00:00 2001 From: Pawan Dhananjay Date: Sun, 24 Nov 2019 06:30:49 +0530 Subject: [PATCH] Fix custom derive macros (#621) --- eth2/utils/ssz_derive/src/lib.rs | 2 +- eth2/utils/tree_hash_derive/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eth2/utils/ssz_derive/src/lib.rs b/eth2/utils/ssz_derive/src/lib.rs index bd367e039..59cef746a 100644 --- a/eth2/utils/ssz_derive/src/lib.rs +++ b/eth2/utils/ssz_derive/src/lib.rs @@ -231,7 +231,7 @@ pub fn ssz_decode_derive(input: TokenStream) -> TokenStream { } } - fn from_ssz_bytes(bytes: &[u8]) -> Result { + fn from_ssz_bytes(bytes: &[u8]) -> std::result::Result { let mut builder = ssz::SszDecoderBuilder::new(bytes); #( diff --git a/eth2/utils/tree_hash_derive/src/lib.rs b/eth2/utils/tree_hash_derive/src/lib.rs index bd869dee5..ab61cf08e 100644 --- a/eth2/utils/tree_hash_derive/src/lib.rs +++ b/eth2/utils/tree_hash_derive/src/lib.rs @@ -246,7 +246,7 @@ pub fn cached_tree_hash_derive(input: TokenStream) -> TokenStream { fn recalculate_tree_hash_root( &self, cache: &mut #cache_type) - -> Result + -> std::result::Result { let mut leaves = vec![];