Skip to content

Commit

Permalink
minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Feb 18, 2024
1 parent 51be702 commit 5bd58e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extendr-macros/src/wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub fn make_function_wrappers(

let return_type_conversion = if !return_is_ref_self {
if opts.use_try_from {
quote!(Ok((#call_name(#actual_args)).try_into()?))
quote!(Ok(#call_name(#actual_args).try_into()?))
} else {
quote!(Ok(extendr_api::Robj::from(#call_name(#actual_args))))
}
Expand Down

0 comments on commit 5bd58e1

Please sign in to comment.