From f49a2a182750901bb56112d9ad6eaefb8e97cdf0 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 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/platform_impl/windows/util.rs b/src/platform_impl/windows/util.rs index 52912c3c6..a3a7705d2 100644 --- a/src/platform_impl/windows/util.rs +++ b/src/platform_impl/windows/util.rs @@ -228,31 +228,31 @@ 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 type GetPointerPenInfo = - unsafe extern "system" fn(pointId: u32, penInfo: *mut POINTER_PEN_INFO) -> BOOL; + unsafe extern "system" fn(point_id: u32, pen_info: *mut POINTER_PEN_INFO) -> BOOL; pub(crate) static GET_DPI_FOR_WINDOW: Lazy> = Lazy::new(|| get_function!("user32.dll", GetDpiForWindow));