From b7aa20d6af450ce9de7a2452bd9c1e440b9de088 Mon Sep 17 00:00:00 2001 From: glowcoil Date: Sat, 16 Dec 2023 18:29:36 -0600 Subject: [PATCH] fix warnings on windows --- src/win/drop_target.rs | 5 +++++ src/win/window.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/win/drop_target.rs b/src/win/drop_target.rs index 2f3122a0..a2b3b6fe 100644 --- a/src/win/drop_target.rs +++ b/src/win/drop_target.rs @@ -83,6 +83,7 @@ impl DropTarget { } } + #[allow(non_snake_case)] fn on_event(&self, pdwEffect: Option<*mut DWORD>, event: MouseEvent) { let Some(window_state) = self.window_state.upgrade() else { return; @@ -165,6 +166,7 @@ impl DropTarget { } } + #[allow(non_snake_case)] unsafe extern "system" fn query_interface( this: *mut IUnknown, riid: REFIID, ppvObject: *mut *mut winapi::ctypes::c_void, ) -> HRESULT { @@ -197,6 +199,7 @@ impl DropTarget { result as ULONG } + #[allow(non_snake_case)] unsafe extern "system" fn drag_enter( this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL, pdwEffect: *mut DWORD, @@ -222,6 +225,7 @@ impl DropTarget { S_OK } + #[allow(non_snake_case)] unsafe extern "system" fn drag_over( this: *mut IDropTarget, grfKeyState: DWORD, pt: POINTL, pdwEffect: *mut DWORD, ) -> HRESULT { @@ -251,6 +255,7 @@ impl DropTarget { S_OK } + #[allow(non_snake_case)] unsafe extern "system" fn drop( this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL, pdwEffect: *mut DWORD, diff --git a/src/win/window.rs b/src/win/window.rs index 5ae57378..7e45b0a3 100644 --- a/src/win/window.rs +++ b/src/win/window.rs @@ -786,6 +786,6 @@ unsafe impl HasRawDisplayHandle for Window<'_> { } } -pub fn copy_to_clipboard(data: &str) { +pub fn copy_to_clipboard(_data: &str) { todo!() }