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)",