File tree 2 files changed +4
-4
lines changed
libxlsxwriter/src/worksheet
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ impl FilterRule {
105
105
) -> Result < libxlsxwriter_sys:: lxw_filter_rule , XlsxError > {
106
106
Ok ( libxlsxwriter_sys:: lxw_filter_rule {
107
107
criteria : self . criteria . into_internal ( ) as u8 ,
108
- value_string : c_string_helper. add_opt ( self . value . to_str ( ) ) ? as * mut std:: ffi :: c_char ,
108
+ value_string : c_string_helper. add_opt ( self . value . to_str ( ) ) ? as * mut std:: os :: raw :: c_char ,
109
109
value : self . value . to_f64 ( ) . unwrap_or_default ( ) ,
110
110
} )
111
111
}
@@ -268,7 +268,7 @@ impl<'a> Worksheet<'a> {
268
268
let mut cstring_helper = crate :: CStringHelper :: new ( ) ;
269
269
let mut cstr_list: Vec < _ > = try_to_vec (
270
270
list. iter ( )
271
- . map ( |x| Ok ( cstring_helper. add ( x) ? as * mut std:: ffi :: c_char ) ) ,
271
+ . map ( |x| Ok ( cstring_helper. add ( x) ? as * mut std:: os :: raw :: c_char ) ) ,
272
272
) ?;
273
273
cstr_list. push ( std:: ptr:: null_mut ( ) ) ;
274
274
unsafe {
Original file line number Diff line number Diff line change @@ -335,14 +335,14 @@ impl CommentOptions {
335
335
) -> Result < libxlsxwriter_sys:: lxw_comment_options , XlsxError > {
336
336
Ok ( libxlsxwriter_sys:: lxw_comment_options {
337
337
visible : self . visible . into_internal ( ) as u8 ,
338
- author : workbook. register_option_str ( self . author . as_deref ( ) ) ? as * mut std :: ffi :: c_char ,
338
+ author : workbook. register_option_str ( self . author . as_deref ( ) ) ? as * mut c_char ,
339
339
width : self . width . unwrap_or_default ( ) ,
340
340
height : self . height . unwrap_or_default ( ) ,
341
341
x_scale : self . x_scale . unwrap_or_default ( ) ,
342
342
y_scale : self . y_scale . unwrap_or_default ( ) ,
343
343
color : self . color . value ( ) ,
344
344
font_name : workbook. register_option_str ( self . font_name . as_deref ( ) ) ?
345
- as * mut std :: ffi :: c_char ,
345
+ as * mut c_char ,
346
346
font_size : self . font_size . unwrap_or_default ( ) ,
347
347
font_family : self . font_family . unwrap_or_default ( ) ,
348
348
start_row : self . start_row ,
You can’t perform that action at this time.
0 commit comments