From af5ea259e95ca142f1f28195fa30f615ef9bc9c8 Mon Sep 17 00:00:00 2001 From: futile Date: Thu, 17 Apr 2025 02:12:34 +0100 Subject: [PATCH] implicit type signature on `buffer` var in `is_window_focused` --- src/util/win.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/win.rs b/src/util/win.rs index 873bf9f..b15b1e6 100644 --- a/src/util/win.rs +++ b/src/util/win.rs @@ -33,7 +33,7 @@ pub fn is_cursor_visible() -> bool { #[allow(clippy::cast_sign_loss)] pub fn is_window_focused(target_title: &str) -> bool { - let mut buffer: [u16; 512] = [0; 512]; + let mut buffer = [0; 512]; unsafe { let hwnd = GetForegroundWindow(); let length = GetWindowTextW(hwnd, &mut buffer);