From d40df3616707b0d00c3e8e3ab81c53e70e8fafb6 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 23 Dec 2024 12:09:58 +0100 Subject: [PATCH] Fix clippy warning --- apps/desktop/desktop_native/core/src/biometric/windows_focus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/desktop_native/core/src/biometric/windows_focus.rs b/apps/desktop/desktop_native/core/src/biometric/windows_focus.rs index 16ecd6ebad..d5e92a67de 100644 --- a/apps/desktop/desktop_native/core/src/biometric/windows_focus.rs +++ b/apps/desktop/desktop_native/core/src/biometric/windows_focus.rs @@ -12,7 +12,7 @@ use windows::{ /// Searches for a window that looks like a security prompt and set it as focused. /// Only works when the process has permission to foreground, either by being in foreground /// Or by being given foreground permission https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setforegroundwindow#remarks -pub fn focus_security_prompt() -> () { +pub fn focus_security_prompt() { let class_name = s!("Credential Dialog Xaml Host"); let hwnd = unsafe { FindWindowA(class_name, None) }; if let Ok(hwnd) = hwnd {