From 39e97ab2beeca85df3d25b748b59d6d8c3bc09d7 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 1 Jan 2023 22:38:41 +0100 Subject: [PATCH] Fix Clippy lints in Windows backend --- src/win/window.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/win/window.rs b/src/win/window.rs index 64dd9aa..e2abd23 100644 --- a/src/win/window.rs +++ b/src/win/window.rs @@ -369,8 +369,8 @@ unsafe fn wnd_proc_inner( SetWindowPos( hwnd, hwnd, - new_rect.left as i32, - new_rect.top as i32, + new_rect.left, + new_rect.top, new_rect.right - new_rect.left, new_rect.bottom - new_rect.top, SWP_NOZORDER | SWP_NOMOVE, @@ -721,8 +721,8 @@ impl Window { SetWindowPos( hwnd, hwnd, - new_rect.left as i32, - new_rect.top as i32, + new_rect.left, + new_rect.top, new_rect.right - new_rect.left, new_rect.bottom - new_rect.top, SWP_NOZORDER | SWP_NOMOVE,