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 a330bd9 commit fe1b888
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 fe1b888

Please sign in to comment.