From 3a21730349a7cc93b4dd7da2fb8f3e0378351479 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Thu, 28 Aug 2025 13:57:28 +0200 Subject: [PATCH] Fix default warn --- apps/desktop/desktop_native/core/src/biometric/linux.rs | 6 ++++++ .../desktop_native/core/src/biometric/unimplemented.rs | 6 ++++++ apps/desktop/desktop_native/core/src/biometric/windows.rs | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/apps/desktop/desktop_native/core/src/biometric/linux.rs b/apps/desktop/desktop_native/core/src/biometric/linux.rs index 5d582c66b74..ceb9c98f5fe 100644 --- a/apps/desktop/desktop_native/core/src/biometric/linux.rs +++ b/apps/desktop/desktop_native/core/src/biometric/linux.rs @@ -34,6 +34,12 @@ impl BiometricLockSystem { } } +impl Default for BiometricLockSystem { + fn default() -> Self { + Self::new() + } +} + impl super::BiometricTrait for BiometricLockSystem { async fn authenticate(&self, _hwnd: Vec, _message: String) -> Result { let connection = Connection::system().await?; diff --git a/apps/desktop/desktop_native/core/src/biometric/unimplemented.rs b/apps/desktop/desktop_native/core/src/biometric/unimplemented.rs index 6e28499035a..88e1ff0c866 100644 --- a/apps/desktop/desktop_native/core/src/biometric/unimplemented.rs +++ b/apps/desktop/desktop_native/core/src/biometric/unimplemented.rs @@ -6,6 +6,12 @@ impl BiometricLockSystem { } } +impl Default for BiometricLockSystem { + fn default() -> Self { + Self::new() + } +} + impl super::BiometricTrait for BiometricLockSystem { async fn authenticate(&self, _hwnd: Vec, _message: String) -> Result { Ok(false) diff --git a/apps/desktop/desktop_native/core/src/biometric/windows.rs b/apps/desktop/desktop_native/core/src/biometric/windows.rs index 898edfe1260..8effce9d11f 100644 --- a/apps/desktop/desktop_native/core/src/biometric/windows.rs +++ b/apps/desktop/desktop_native/core/src/biometric/windows.rs @@ -78,6 +78,12 @@ impl BiometricLockSystem { } } +impl Default for BiometricLockSystem { + fn default() -> Self { + Self::new() + } +} + impl super::BiometricTrait for BiometricLockSystem { async fn authenticate(&self, hwnd: Vec, message: String) -> Result { windows_hello_authenticate(hwnd, message)