mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-03 09:47:38 +00:00
Fix custom derive macros (#621)
This commit is contained in:
parent
0c1e27ec13
commit
3ca63cfa83
@ -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);
|
||||||
|
|
||||||
#(
|
#(
|
||||||
|
@ -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![];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user