mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +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
|
// 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
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user