File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,8 @@ impl GlibLogger {
122
122
crate :: ffi:: g_log (
123
123
domain. to_glib_none ( ) . 0 ,
124
124
GlibLogger :: level_to_glib ( level) ,
125
- b"%s\0 " . as_ptr ( ) as * const i8 ,
126
- ToGlibPtr :: < * const i8 > :: to_glib_none ( message) . 0 ,
125
+ b"%s\0 " . as_ptr ( ) as * const _ ,
126
+ ToGlibPtr :: < * const std :: os :: raw :: c_char > :: to_glib_none ( message) . 0 ,
127
127
) ;
128
128
}
129
129
}
@@ -153,8 +153,8 @@ impl GlibLogger {
153
153
file. to_glib_none ( ) . 0 ,
154
154
line_str. to_glib_none ( ) . 0 ,
155
155
func. to_glib_none ( ) . 0 ,
156
- b"%s\0 " . as_ptr ( ) as * const i8 ,
157
- ToGlibPtr :: < * const i8 > :: to_glib_none ( message) . 0 ,
156
+ b"%s\0 " . as_ptr ( ) as * const _ ,
157
+ ToGlibPtr :: < * const std :: os :: raw :: c_char > :: to_glib_none ( message) . 0 ,
158
158
) ;
159
159
}
160
160
}
Original file line number Diff line number Diff line change @@ -347,8 +347,8 @@ macro_rules! g_log_inner {
347
347
$crate:: ffi:: g_log(
348
348
$log_domain,
349
349
$log_level. into_glib( ) ,
350
- b"%s\0 " . as_ptr( ) as * const i8 ,
351
- ToGlibPtr :: <* const i8 >:: to_glib_none( & w. into_string( ) ) . 0 ,
350
+ b"%s\0 " . as_ptr( ) as * const _ ,
351
+ ToGlibPtr :: <* const std :: os :: raw :: c_char >:: to_glib_none( & w. into_string( ) ) . 0 ,
352
352
) ;
353
353
}
354
354
}
@@ -647,8 +647,8 @@ macro_rules! g_print_inner {
647
647
if !std:: write!( & mut w, $format, $( $arg) ,* ) . is_err( ) {
648
648
unsafe {
649
649
$crate:: ffi:: $func(
650
- b"%s\0 " . as_ptr( ) as * const i8 ,
651
- ToGlibPtr :: <* const i8 >:: to_glib_none( & w. into_string( ) ) . 0 ,
650
+ b"%s\0 " . as_ptr( ) as * const _ ,
651
+ ToGlibPtr :: <* const std :: os :: raw :: c_char >:: to_glib_none( & w. into_string( ) ) . 0 ,
652
652
) ;
653
653
}
654
654
}
You can’t perform that action at this time.
0 commit comments