@@ -1226,17 +1226,15 @@ impl crate::Surface for Surface {
1226
1226
let native_window_ptr = match ( self . wsi . kind , self . raw_window_handle ) {
1227
1227
( WindowKind :: Unknown | WindowKind :: X11 , Rwh :: Xlib ( handle) ) => {
1228
1228
temp_xlib_handle = handle. window ;
1229
- & mut temp_xlib_handle as * mut _ as * mut std:: ffi:: c_void
1230
- }
1231
- ( WindowKind :: AngleX11 , Rwh :: Xlib ( handle) ) => {
1232
- handle. window as * mut std:: ffi:: c_void
1229
+ & mut temp_xlib_handle as * mut _ as * mut ffi:: c_void
1233
1230
}
1231
+ ( WindowKind :: AngleX11 , Rwh :: Xlib ( handle) ) => handle. window as * mut ffi:: c_void ,
1234
1232
( WindowKind :: Unknown | WindowKind :: X11 , Rwh :: Xcb ( handle) ) => {
1235
1233
temp_xcb_handle = handle. window ;
1236
- & mut temp_xcb_handle as * mut _ as * mut std :: ffi:: c_void
1234
+ & mut temp_xcb_handle as * mut _ as * mut ffi:: c_void
1237
1235
}
1238
1236
( WindowKind :: AngleX11 , Rwh :: Xcb ( handle) ) => {
1239
- handle. window . get ( ) as * mut std :: ffi:: c_void
1237
+ handle. window . get ( ) as * mut ffi:: c_void
1240
1238
}
1241
1239
( WindowKind :: Unknown , Rwh :: AndroidNdk ( handle) ) => {
1242
1240
handle. a_native_window . as_ptr ( )
@@ -1252,9 +1250,9 @@ impl crate::Surface for Surface {
1252
1250
window
1253
1251
}
1254
1252
#[ cfg( Emscripten ) ]
1255
- ( WindowKind :: Unknown , Rwh :: Web ( handle) ) => handle. id as * mut std :: ffi:: c_void ,
1253
+ ( WindowKind :: Unknown , Rwh :: Web ( handle) ) => handle. id as * mut ffi:: c_void ,
1256
1254
( WindowKind :: Unknown , Rwh :: Win32 ( handle) ) => {
1257
- handle. hwnd . get ( ) as * mut std :: ffi:: c_void
1255
+ handle. hwnd . get ( ) as * mut ffi:: c_void
1258
1256
}
1259
1257
( WindowKind :: Unknown , Rwh :: AppKit ( handle) ) => {
1260
1258
#[ cfg( not( target_os = "macos" ) ) ]
0 commit comments