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 39e6f7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions gdk4-win32/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![allow(deprecated)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(not(all(feature = "win32", windows)))]
use std::ffi::c_void;

pub use gdk;
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 39e6f7f

Please sign in to comment.