Skip to content

Commit

Permalink
made ccx_options.copy_from_rust(opt); unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
vats004 committed Feb 22, 2025
1 parent ac8a70b commit 36258e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ pub unsafe extern "C" fn ccxr_parse_parameters(argc: c_int, argv: *mut *mut c_ch
tlt_config = _tlt_config.to_ctype(&opt);

// Convert the rust struct (CcxOptions) to C struct (ccx_s_options), so that it can be used by the C code
ccx_options.copy_from_rust(opt);
unsafe {
ccx_options.copy_from_rust(opt);
}

if !_capitalization_list.is_empty() {
capitalization_list = _capitalization_list.to_ctype();
Expand Down

0 comments on commit 36258e8

Please sign in to comment.