1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

clippy & fmt

This commit is contained in:
John Harrington
2025-12-04 11:12:00 -07:00
parent 16a0aad849
commit 1e0988f172
2 changed files with 5 additions and 6 deletions

View File

@@ -99,9 +99,7 @@ pub async fn import_logins(
// MAS builds will use the formerly created security bookmark // MAS builds will use the formerly created security bookmark
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
let _access = if _mas_build { let _access = if _mas_build {
Some(platform::sandbox::ScopedBrowserAccess::resume( Some(platform::sandbox::ScopedBrowserAccess::resume(browser_name).await?)
browser_name,
).await?)
} else { } else {
None None
}; };

View File

@@ -94,9 +94,10 @@ pub mod sandbox {
}), }),
}; };
let has_access_output = desktop_objc::run_command(serde_json::to_string(&has_access_input)?) let has_access_output =
.await desktop_objc::run_command(serde_json::to_string(&has_access_input)?)
.map_err(|e| anyhow!("Failed to call ObjC command: {}", e))?; .await
.map_err(|e| anyhow!("Failed to call ObjC command: {}", e))?;
let has_access_result: CommandResult<HasStoredAccessResponse> = let has_access_result: CommandResult<HasStoredAccessResponse> =
serde_json::from_str(&has_access_output) serde_json::from_str(&has_access_output)