mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
clippy & fmt
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user