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!(
|
||||
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
|
||||
Self: Sized,
|
||||
{
|
||||
@ -40,7 +40,7 @@ pub fn pushpop_derive_macro(item: TokenStream) -> TokenStream {
|
||||
#(#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)*
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user