From fe1b888a4955ff441213589bdd60ee2c1f0eef6c Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 19 Oct 2024 09:45:22 +0200 Subject: [PATCH] gdk/win32: Fix clippy warnings --- gdk4-win32/src/lib.rs | 1 + gdk4-win32/src/win32_hcursor.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk4-win32/src/lib.rs b/gdk4-win32/src/lib.rs index 205938b07e23..6a55692811cd 100644 --- a/gdk4-win32/src/lib.rs +++ b/gdk4-win32/src/lib.rs @@ -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; diff --git a/gdk4-win32/src/win32_hcursor.rs b/gdk4-win32/src/win32_hcursor.rs index a93cc2d2e12f..0b6d8bfd92a1 100644 --- a/gdk4-win32/src/win32_hcursor.rs +++ b/gdk4-win32/src/win32_hcursor.rs @@ -25,6 +25,6 @@ impl Win32HCursor { pub fn handle(&self) -> HCURSOR { let ptr: NonNull = ObjectExt::property(self, "handle"); - HCURSOR(ptr.as_ptr() as *mut c_void) + HCURSOR(ptr.as_ptr()) } }