Explicitly use anyhow::Result to fix confusion with std Result type
This commit is contained in:
parent
fc244b8f81
commit
456ff355ed
@ -31,7 +31,7 @@ pub fn pushpop_derive_macro(item: TokenStream) -> TokenStream {
|
|||||||
|
|
||||||
quote!(
|
quote!(
|
||||||
impl PopFromNE for #struct_ident {
|
impl PopFromNE for #struct_ident {
|
||||||
fn pop_ne_from(mut source: &mut &[u8]) -> Result<Self>
|
fn pop_ne_from(mut source: &mut &[u8]) -> anyhow::Result<Self>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ pub fn pushpop_derive_macro(item: TokenStream) -> TokenStream {
|
|||||||
#(#names),*
|
#(#names),*
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
fn push_ne_into<T: Pushable>(&self, dest: &mut T) -> Result<()> {
|
fn push_ne_into<T: Pushable>(&self, dest: &mut T) -> anyhow::Result<()> {
|
||||||
#(#pop)*
|
#(#pop)*
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user