44#![ cfg_attr( test, allow( dead_code) ) ]
55#![ unstable( issue = "none" , feature = "windows_c" ) ]
66#![ allow( clippy:: style) ]
7- #![ allow( unsafe_op_in_unsafe_fn) ]
87
9- use crate :: ffi:: CStr ;
10- use crate :: mem;
11- use crate :: os:: raw:: { c_uint, c_ulong, c_ushort, c_void} ;
12- use crate :: ptr;
8+ use core:: ffi:: { c_uint, c_ulong, c_ushort, c_void, CStr } ;
9+ use core:: mem;
10+ use core:: ptr;
1311
1412pub ( super ) mod windows_targets;
1513
@@ -188,12 +186,12 @@ extern "system" {
188186compat_fn_optional ! {
189187 crate :: sys:: compat:: load_synch_functions( ) ;
190188 pub fn WaitOnAddress (
191- address: * const :: core :: ffi :: c_void,
192- compareaddress: * const :: core :: ffi :: c_void,
189+ address: * const c_void,
190+ compareaddress: * const c_void,
193191 addresssize: usize ,
194192 dwmilliseconds: u32
195193 ) -> BOOL ;
196- pub fn WakeByAddressSingle ( address: * const :: core :: ffi :: c_void) ;
194+ pub fn WakeByAddressSingle ( address: * const c_void) ;
197195}
198196
199197#[ cfg( any( target_vendor = "win7" , target_vendor = "uwp" ) ) ]
@@ -240,7 +238,7 @@ compat_fn_with_fallback! {
240238 shareaccess: FILE_SHARE_MODE ,
241239 createdisposition: NTCREATEFILE_CREATE_DISPOSITION ,
242240 createoptions: NTCREATEFILE_CREATE_OPTIONS ,
243- eabuffer: * const :: core :: ffi :: c_void,
241+ eabuffer: * const c_void,
244242 ealength: u32
245243 ) -> NTSTATUS {
246244 STATUS_NOT_IMPLEMENTED
@@ -250,9 +248,9 @@ compat_fn_with_fallback! {
250248 filehandle: HANDLE ,
251249 event: HANDLE ,
252250 apcroutine: PIO_APC_ROUTINE ,
253- apccontext: * const core :: ffi :: c_void,
251+ apccontext: * const c_void,
254252 iostatusblock: * mut IO_STATUS_BLOCK ,
255- buffer: * mut core :: ffi :: c_void,
253+ buffer: * mut c_void,
256254 length: u32 ,
257255 byteoffset: * const i64 ,
258256 key: * const u32
@@ -264,9 +262,9 @@ compat_fn_with_fallback! {
264262 filehandle: HANDLE ,
265263 event: HANDLE ,
266264 apcroutine: PIO_APC_ROUTINE ,
267- apccontext: * const core :: ffi :: c_void,
265+ apccontext: * const c_void,
268266 iostatusblock: * mut IO_STATUS_BLOCK ,
269- buffer: * const core :: ffi :: c_void,
267+ buffer: * const c_void,
270268 length: u32 ,
271269 byteoffset: * const i64 ,
272270 key: * const u32
0 commit comments