1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-29 14:43:31 +00:00

cargo fmt

This commit is contained in:
John Harrington
2025-12-15 09:55:15 -07:00
parent 4e9ed04817
commit cf12ef6a33

View File

@@ -180,7 +180,8 @@ async fn is_browser_installed(browser_name: &str) -> Result<bool> {
let Some(bundle_id) = bundle_id else {
return Ok(true); // ok_or(true) was a review suggestion with breaking changes
// Avoid ok_or(true): serializes Result as {"Ok": "..."} instead of string value
// Avoid ok_or(true): serializes Result as {"Ok": "..."} instead of string
// value
};
let input = CommandInput {
@@ -200,7 +201,7 @@ async fn is_browser_installed(browser_name: &str) -> Result<bool> {
match result {
CommandResult::Success { value } => Ok(value.is_installed),
CommandResult::Error { error} => Err(anyhow!("{}", error)),
CommandResult::Error { error } => Err(anyhow!("{}", error)),
}
}