Explicitly use anyhow::Result to fix confusion with std Result type

This commit is contained in:
Lucas Schumacher 2025-06-04 11:54:30 -04:00
parent fc244b8f81
commit 456ff355ed

View File

@ -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(())
} }