diff --git a/uniffi_macros/src/object.rs b/uniffi_macros/src/object.rs index 3b09ec6609..b63fb0ab7e 100644 --- a/uniffi_macros/src/object.rs +++ b/uniffi_macros/src/object.rs @@ -139,7 +139,7 @@ pub(crate) fn interface_impl(ident: &Ident, udl_mode: bool) -> TokenStream { unsafe #lower_return_impl_spec { type ReturnType = >::FfiType; - fn lower_return(obj: Self) -> Result { + fn lower_return(obj: Self) -> ::std::result::Result { Ok(>::lower(::std::sync::Arc::new(obj))) }