From 2a3c0f52824c925fcad7bb7da02425c878c212f9 Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Thu, 18 Dec 2025 14:35:30 -0600 Subject: [PATCH] Run rustfmt --- apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs | 3 ++- apps/desktop/desktop_native/win_webauthn/src/plugin/mod.rs | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs b/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs index 52ff474b7f4..8da3d4a7599 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/com.rs @@ -295,7 +295,8 @@ where // Initialize COM on this thread. let com_init_result = CoInitializeEx(None, COINIT_APARTMENTTHREADED); match com_init_result { - S_OK | S_FALSE => {} // COM successfully initialized, and should be uninitialized with CoUninitialize later. + // COM successfully initialized, and should be uninitialized with CoUninitialize later. + S_OK | S_FALSE => {} code => { return Err(WinWebAuthnError::with_cause( ErrorKind::WindowsInternal, diff --git a/apps/desktop/desktop_native/win_webauthn/src/plugin/mod.rs b/apps/desktop/desktop_native/win_webauthn/src/plugin/mod.rs index 10d447cea2e..98c65537663 100644 --- a/apps/desktop/desktop_native/win_webauthn/src/plugin/mod.rs +++ b/apps/desktop/desktop_native/win_webauthn/src/plugin/mod.rs @@ -131,7 +131,8 @@ impl WebAuthnPlugin { pbSupportedRpIds, }; unsafe { - // SAFETY: We are holding references to all the input data beyond the OS call, so it is valid during the call. + // SAFETY: We are holding references to all the input data beyond the OS call, so it is + // valid during the call. let result = webauthn_plugin_add_authenticator(&options_c, &mut response_ptr)?; result.ok().map_err(|err| { WinWebAuthnError::with_cause( @@ -259,7 +260,8 @@ impl WebAuthnPlugin { // Convert Bitwarden credentials to Windows credential details // All buffers must be allocated with the COM task allocator to be passed over COM. - // The receiver is responsible for freeing the COM memory, which is why we leak all the buffers here. + // The receiver is responsible for freeing the COM memory, which is why we leak all the + // buffers here. let mut win_credentials = Vec::new(); for (i, cred) in credentials.iter().enumerate() { tracing::debug!("[SYNC_TO_WIN] Converting credential {}: RP ID: {}, User: {}, Credential ID: {:?} ({} bytes), User ID: {:?} ({} bytes)",