Skip to content

Commit

Permalink
Error fix proposal for missing type path to returned Result in Object…
Browse files Browse the repository at this point in the history
… macro (#1897)
  • Loading branch information
mstrug-rdx authored Dec 12, 2023
1 parent 20fbd2c commit c326efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uniffi_macros/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub(crate) fn interface_impl(ident: &Ident, udl_mode: bool) -> TokenStream {
unsafe #lower_return_impl_spec {
type ReturnType = <Self as ::uniffi::FfiConverterArc<crate::UniFfiTag>>::FfiType;

fn lower_return(obj: Self) -> Result<Self::ReturnType, ::uniffi::RustBuffer> {
fn lower_return(obj: Self) -> ::std::result::Result<Self::ReturnType, ::uniffi::RustBuffer> {
Ok(<Self as ::uniffi::FfiConverterArc<crate::UniFfiTag>>::lower(::std::sync::Arc::new(obj)))
}

Expand Down

0 comments on commit c326efc

Please sign in to comment.