Skip to content

Commit

Permalink
Fix: linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rusko124 committed Jul 3, 2024
1 parent da055c4 commit 65b1553
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/commands/edge_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,10 @@ impl EdgeAppCommand {
address_shared.lock().unwrap().as_ref().unwrap()
);

if let Err(e) = self.open_browser(
&format!("{}/index.html", address_shared.lock().unwrap().as_ref().unwrap()),
) {
if let Err(e) = self.open_browser(&format!(
"{}/index.html",
address_shared.lock().unwrap().as_ref().unwrap()
)) {
eprintln!("{}", e);
}

Expand All @@ -412,7 +413,7 @@ impl EdgeAppCommand {
"linux" => "xdg-open",
_ => {
return Err(CommandError::OpenBrowserError(
"Unsupported OS to open browser".to_string()
"Unsupported OS to open browser".to_string(),
))
}
};
Expand All @@ -423,9 +424,10 @@ impl EdgeAppCommand {
.expect("Failed to open browser");

if !output.status.success() {
return Err(CommandError::OpenBrowserError(
format!("Failed to open browser: {}", str::from_utf8(&output.stderr).unwrap())
));
return Err(CommandError::OpenBrowserError(format!(
"Failed to open browser: {}",
str::from_utf8(&output.stderr).unwrap()
)));
}

Ok(())
Expand Down

0 comments on commit 65b1553

Please sign in to comment.