1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 00:33:33 +00:00

Run rustfmt

This commit is contained in:
Isaiah Inuwa
2025-12-18 14:35:30 -06:00
parent 3389a0420b
commit 2a3c0f5282
2 changed files with 6 additions and 3 deletions

View File

@@ -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,

View File

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