1
0
Fork 0

Fix warnings on windows (#159)

This commit is contained in:
Micah Johnston 2023-12-16 19:33:12 -06:00 committed by GitHub
parent b59a67d287
commit 1b8c8760c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -83,6 +83,7 @@ impl DropTarget {
} }
} }
#[allow(non_snake_case)]
fn on_event(&self, pdwEffect: Option<*mut DWORD>, event: MouseEvent) { fn on_event(&self, pdwEffect: Option<*mut DWORD>, event: MouseEvent) {
let Some(window_state) = self.window_state.upgrade() else { let Some(window_state) = self.window_state.upgrade() else {
return; return;
@ -165,6 +166,7 @@ impl DropTarget {
} }
} }
#[allow(non_snake_case)]
unsafe extern "system" fn query_interface( unsafe extern "system" fn query_interface(
this: *mut IUnknown, riid: REFIID, ppvObject: *mut *mut winapi::ctypes::c_void, this: *mut IUnknown, riid: REFIID, ppvObject: *mut *mut winapi::ctypes::c_void,
) -> HRESULT { ) -> HRESULT {
@ -197,6 +199,7 @@ impl DropTarget {
result as ULONG result as ULONG
} }
#[allow(non_snake_case)]
unsafe extern "system" fn drag_enter( unsafe extern "system" fn drag_enter(
this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL, this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL,
pdwEffect: *mut DWORD, pdwEffect: *mut DWORD,
@ -222,6 +225,7 @@ impl DropTarget {
S_OK S_OK
} }
#[allow(non_snake_case)]
unsafe extern "system" fn drag_over( unsafe extern "system" fn drag_over(
this: *mut IDropTarget, grfKeyState: DWORD, pt: POINTL, pdwEffect: *mut DWORD, this: *mut IDropTarget, grfKeyState: DWORD, pt: POINTL, pdwEffect: *mut DWORD,
) -> HRESULT { ) -> HRESULT {
@ -251,6 +255,7 @@ impl DropTarget {
S_OK S_OK
} }
#[allow(non_snake_case)]
unsafe extern "system" fn drop( unsafe extern "system" fn drop(
this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL, this: *mut IDropTarget, pDataObj: *const IDataObject, grfKeyState: DWORD, pt: POINTL,
pdwEffect: *mut DWORD, pdwEffect: *mut DWORD,

View file

@ -786,6 +786,6 @@ unsafe impl HasRawDisplayHandle for Window<'_> {
} }
} }
pub fn copy_to_clipboard(data: &str) { pub fn copy_to_clipboard(_data: &str) {
todo!() todo!()
} }