Skip to content

Commit

Permalink
Always wrap MakeUnique
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Feb 10, 2022
1 parent 7a8f097 commit 6ab36e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/src/conversion/codegen_rs/fun_codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub(super) fn gen_function(
.iter()
.any(|pd| pd.conversion.rust_work_needed());
let rust_wrapper_needed = match kind {
FnKind::TraitMethod { .. } => true,
FnKind::TraitMethod { .. } | FnKind::Method(_, MethodKind::MakeUnique) => true,
FnKind::Method(..) => any_param_needs_rust_conversion || cxxbridge_name != rust_name,
_ => any_param_needs_rust_conversion,
};
Expand Down

0 comments on commit 6ab36e0

Please sign in to comment.