diff --git a/src/rust/src/common.rs b/src/rust/src/common.rs index 4b7b47ea7..e6a28a087 100644 --- a/src/rust/src/common.rs +++ b/src/rust/src/common.rs @@ -154,6 +154,7 @@ pub unsafe fn copy_from_rust(ccx_s_options: *mut ccx_s_options, options: Options (*ccx_s_options).ocrlang = string_to_c_char(ocrlang.to_ctype().as_str()); } (*ccx_s_options).ocr_oem = options.ocr_oem as _; + (*ccx_s_options).psm = options.psm as _; (*ccx_s_options).ocr_quantmode = options.ocr_quantmode as _; if let Some(mkvlang) = options.mkvlang { (*ccx_s_options).mkvlang = string_to_c_char(mkvlang.to_ctype().as_str());