From 4f0a71736c7534b41693942a3ae3a0737dadb437 Mon Sep 17 00:00:00 2001 From: Jussi Viiri Date: Sat, 10 Jun 2023 21:58:31 +0300 Subject: [PATCH] Remove unnecessary transmute --- src/win/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/window.rs b/src/win/window.rs index 289ec65..4526b9f 100644 --- a/src/win/window.rs +++ b/src/win/window.rs @@ -916,7 +916,7 @@ impl DropTarget { { if IsEqualIID(&*riid, &IUnknown::uuidof()) || IsEqualIID(&*riid, &IDropTarget::uuidof()){ Self::add_ref(this); - *ppvObject = unsafe { transmute(this) }; + *ppvObject = this as *mut winapi::ctypes::c_void; return S_OK; }