implicit type signature on buffer var in is_window_focused

This commit is contained in:
2025-04-17 02:12:34 +01:00
parent 162350699a
commit af5ea259e9
+1 -1
View File
@@ -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);