Skip to content

Commit cd6a54c

Browse files
gdk/win32: Fix clippy warnings
1 parent c180f96 commit cd6a54c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

gdk4-win32/src/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#![allow(deprecated)]
55
#![cfg_attr(docsrs, feature(doc_cfg))]
66

7-
use std::ffi::c_void;
8-
97
pub use gdk;
108
pub use gdk4_win32_sys as ffi;
119
pub use gio;
@@ -32,13 +30,13 @@ mod win32_hcursor;
3230
mod win32_surface;
3331

3432
#[cfg(not(all(feature = "win32", windows)))]
35-
pub struct HANDLE(pub *mut c_void);
33+
pub struct HANDLE(pub *mut std::ffi::c_void);
3634
#[cfg(not(all(feature = "win32", windows)))]
37-
pub struct HCURSOR(pub *mut c_void);
35+
pub struct HCURSOR(pub *mut std::ffi::c_void);
3836
#[cfg(not(all(feature = "win32", windows)))]
39-
pub struct HICON(pub *mut c_void);
37+
pub struct HICON(pub *mut std::ffi::c_void);
4038
#[cfg(not(all(feature = "win32", windows)))]
41-
pub struct HWND(pub *mut c_void);
39+
pub struct HWND(pub *mut std::ffi::c_void);
4240

4341
#[cfg(not(all(feature = "win32", windows)))]
4442
#[repr(transparent)]

gdk4-win32/src/win32_hcursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ impl Win32HCursor {
2525

2626
pub fn handle(&self) -> HCURSOR {
2727
let ptr: NonNull<Pointee> = ObjectExt::property(self, "handle");
28-
HCURSOR(ptr.as_ptr() as *mut c_void)
28+
HCURSOR(ptr.as_ptr())
2929
}
3030
}

0 commit comments

Comments
 (0)