From 65b155347d3ad61373787cce2782d541dfab3440 Mon Sep 17 00:00:00 2001 From: Rusko124 Date: Wed, 3 Jul 2024 15:43:37 +0400 Subject: [PATCH] Fix: linter warning --- src/commands/edge_app.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/commands/edge_app.rs b/src/commands/edge_app.rs index 8fc7405..85557d5 100644 --- a/src/commands/edge_app.rs +++ b/src/commands/edge_app.rs @@ -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); } @@ -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(), )) } }; @@ -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(())