File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ mod tests {
144144 raw:: set_err_msg (
145145 ctx_ptr,
146146 raw:: err_NIX_ERR_UNKNOWN. try_into ( ) . unwrap ( ) ,
147- b"dummy error message\0 " . as_ptr ( ) as * const i8 ,
147+ b"dummy error message\0 " . as_ptr ( ) as * const std :: os :: raw :: c_char ,
148148 ) ;
149149 }
150150 }
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ mod tests {
7575 #[ test]
7676 fn test_callback_result_string ( ) {
7777 let mut ret: Result < String > = result_string_init ! ( ) ;
78- let start: * const std :: os :: raw :: c_char = b"helloGARBAGE" . as_ptr ( ) as * const i8 ;
78+ let start = b"helloGARBAGE" . as_ptr ( ) as * const std :: os :: raw :: c_char ;
7979 let n: std:: os:: raw:: c_uint = 5 ;
8080 let user_data: * mut std:: os:: raw:: c_void = callback_get_result_string_data ( & mut ret) ;
8181 unsafe {
You can’t perform that action at this time.
0 commit comments