Skip to content

Commit 36258e8

Browse files
committed
made ccx_options.copy_from_rust(opt); unsafe
1 parent ac8a70b commit 36258e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rust/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ pub unsafe extern "C" fn ccxr_parse_parameters(argc: c_int, argv: *mut *mut c_ch
282282
tlt_config = _tlt_config.to_ctype(&opt);
283283

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

287289
if !_capitalization_list.is_empty() {
288290
capitalization_list = _capitalization_list.to_ctype();

0 commit comments

Comments
 (0)