1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +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
#[cfg(target_os = "macos")]
let _access = if _mas_build {
Some(platform::sandbox::ScopedBrowserAccess::resume(
browser_name,
).await?)
Some(platform::sandbox::ScopedBrowserAccess::resume(browser_name).await?)
} else {
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)?)
.await
.map_err(|e| anyhow!("Failed to call ObjC command: {}", e))?;
let has_access_output =
desktop_objc::run_command(serde_json::to_string(&has_access_input)?)
.await
.map_err(|e| anyhow!("Failed to call ObjC command: {}", e))?;
let has_access_result: CommandResult<HasStoredAccessResponse> =
serde_json::from_str(&has_access_output)