From 9904540898d4bc1fa1344d18ee94697d77caf89c Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 23 Dec 2024 12:02:04 +0100 Subject: [PATCH] Fix formatting --- .../desktop_native/core/src/biometric/windows.rs | 10 +++++----- .../core/src/biometric/windows_focus.rs | 11 ++++++++++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/apps/desktop/desktop_native/core/src/biometric/windows.rs b/apps/desktop/desktop_native/core/src/biometric/windows.rs index 2b2af1f93e..a2200ef998 100644 --- a/apps/desktop/desktop_native/core/src/biometric/windows.rs +++ b/apps/desktop/desktop_native/core/src/biometric/windows.rs @@ -17,10 +17,7 @@ use windows::{ }, Cryptography::CryptographicBuffer, }, - Win32::{ - Foundation::HWND, - System::WinRT::IUserConsentVerifierInterop, - }, + Win32::{Foundation::HWND, System::WinRT::IUserConsentVerifierInterop}, }; use crate::{ @@ -28,7 +25,10 @@ use crate::{ crypto::CipherString, }; -use super::{decrypt, encrypt, windows_focus::{focus_security_prompt, set_focus}}; +use super::{ + decrypt, encrypt, + windows_focus::{focus_security_prompt, set_focus}, +}; /// The Windows OS implementation of the biometric trait. pub struct Biometric {} 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 4a12e3df0b..16ecd6ebad 100644 --- a/apps/desktop/desktop_native/core/src/biometric/windows_focus.rs +++ b/apps/desktop/desktop_native/core/src/biometric/windows_focus.rs @@ -1,4 +1,13 @@ -use windows::{core::s, Win32::{Foundation::HWND, UI::{Input::KeyboardAndMouse::SetFocus, WindowsAndMessaging::{FindWindowA, SetForegroundWindow}}}}; +use windows::{ + core::s, + Win32::{ + Foundation::HWND, + UI::{ + Input::KeyboardAndMouse::SetFocus, + WindowsAndMessaging::{FindWindowA, SetForegroundWindow}, + }, + }, +}; /// 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