clippy: fix casing in windows backend

This commit is contained in:
Kirill Chibisov 2025-05-02 16:02:30 +09:00
parent 17666e3171
commit 6756549ac9

View file

@ -228,28 +228,28 @@ pub type GetDpiForMonitor = unsafe extern "system" fn(
pub type EnableNonClientDpiScaling = unsafe extern "system" fn(hwnd: HWND) -> BOOL; pub type EnableNonClientDpiScaling = unsafe extern "system" fn(hwnd: HWND) -> BOOL;
pub type AdjustWindowRectExForDpi = unsafe extern "system" fn( pub type AdjustWindowRectExForDpi = unsafe extern "system" fn(
rect: *mut RECT, rect: *mut RECT,
dwStyle: u32, dw_style: u32,
bMenu: BOOL, b_menu: BOOL,
dwExStyle: u32, dw_ex_style: u32,
dpi: u32, dpi: u32,
) -> BOOL; ) -> BOOL;
pub type GetPointerFrameInfoHistory = unsafe extern "system" fn( pub type GetPointerFrameInfoHistory = unsafe extern "system" fn(
pointerId: u32, pointer_id: u32,
entriesCount: *mut u32, entries_count: *mut u32,
pointerCount: *mut u32, pointer_count: *mut u32,
pointerInfo: *mut POINTER_INFO, pointer_info: *mut POINTER_INFO,
) -> BOOL; ) -> 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( pub type GetPointerDeviceRects = unsafe extern "system" fn(
device: HANDLE, device: HANDLE,
pointerDeviceRect: *mut RECT, pointer_device_rect: *mut RECT,
displayRect: *mut RECT, display_rect: *mut RECT,
) -> BOOL; ) -> BOOL;
pub type GetPointerTouchInfo = 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<Option<GetDpiForWindow>> = pub(crate) static GET_DPI_FOR_WINDOW: Lazy<Option<GetDpiForWindow>> =
Lazy::new(|| get_function!("user32.dll", GetDpiForWindow)); Lazy::new(|| get_function!("user32.dll", GetDpiForWindow));