From 6756549ac93fecb769b1750109baf2b8d53dc046 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 2 May 2025 16:02:30 +0900 Subject: [PATCH] clippy: fix casing in windows backend --- src/platform_impl/windows/util.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/platform_impl/windows/util.rs b/src/platform_impl/windows/util.rs index 7f41b3ca..df67e448 100644 --- a/src/platform_impl/windows/util.rs +++ b/src/platform_impl/windows/util.rs @@ -228,28 +228,28 @@ pub type GetDpiForMonitor = unsafe extern "system" fn( pub type EnableNonClientDpiScaling = unsafe extern "system" fn(hwnd: HWND) -> BOOL; pub type AdjustWindowRectExForDpi = unsafe extern "system" fn( rect: *mut RECT, - dwStyle: u32, - bMenu: BOOL, - dwExStyle: u32, + dw_style: u32, + b_menu: BOOL, + dw_ex_style: u32, dpi: u32, ) -> BOOL; pub type GetPointerFrameInfoHistory = unsafe extern "system" fn( - pointerId: u32, - entriesCount: *mut u32, - pointerCount: *mut u32, - pointerInfo: *mut POINTER_INFO, + pointer_id: u32, + entries_count: *mut u32, + pointer_count: *mut u32, + pointer_info: *mut POINTER_INFO, ) -> BOOL; -pub type SkipPointerFrameMessages = unsafe extern "system" fn(pointerId: u32) -> BOOL; +pub type SkipPointerFrameMessages = unsafe extern "system" fn(pointer_id: u32) -> BOOL; pub type GetPointerDeviceRects = unsafe extern "system" fn( device: HANDLE, - pointerDeviceRect: *mut RECT, - displayRect: *mut RECT, + pointer_device_rect: *mut RECT, + display_rect: *mut RECT, ) -> BOOL; pub type GetPointerTouchInfo = - unsafe extern "system" fn(pointerId: u32, touchInfo: *mut POINTER_TOUCH_INFO) -> BOOL; + unsafe extern "system" fn(pointer_id: u32, touch_info: *mut POINTER_TOUCH_INFO) -> BOOL; pub(crate) static GET_DPI_FOR_WINDOW: Lazy> = Lazy::new(|| get_function!("user32.dll", GetDpiForWindow));