Skip to content

Commit

Permalink
gdk/win32: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Oct 19, 2024
1 parent c180f96 commit cd6a54c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions gdk4-win32/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#![allow(deprecated)]
#![cfg_attr(docsrs, feature(doc_cfg))]

use std::ffi::c_void;

pub use gdk;
pub use gdk4_win32_sys as ffi;
pub use gio;
Expand All @@ -32,13 +30,13 @@ mod win32_hcursor;
mod win32_surface;

#[cfg(not(all(feature = "win32", windows)))]
pub struct HANDLE(pub *mut c_void);
pub struct HANDLE(pub *mut std::ffi::c_void);
#[cfg(not(all(feature = "win32", windows)))]
pub struct HCURSOR(pub *mut c_void);
pub struct HCURSOR(pub *mut std::ffi::c_void);
#[cfg(not(all(feature = "win32", windows)))]
pub struct HICON(pub *mut c_void);
pub struct HICON(pub *mut std::ffi::c_void);
#[cfg(not(all(feature = "win32", windows)))]
pub struct HWND(pub *mut c_void);
pub struct HWND(pub *mut std::ffi::c_void);

#[cfg(not(all(feature = "win32", windows)))]
#[repr(transparent)]
Expand Down
2 changes: 1 addition & 1 deletion gdk4-win32/src/win32_hcursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ impl Win32HCursor {

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

0 comments on commit cd6a54c

Please sign in to comment.