From 210924e36f35395bac45beaf739e9f2b39e150ef Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Fri, 30 May 2025 00:48:18 +0400 Subject: [PATCH] chore: fix clippy warnings --- src-tauri/src/browser_runner.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/browser_runner.rs b/src-tauri/src/browser_runner.rs index e164384..92aa677 100644 --- a/src-tauri/src/browser_runner.rs +++ b/src-tauri/src/browser_runner.rs @@ -745,7 +745,9 @@ end try browser_dir.push(&updated_profile.version); let browser = create_browser(browser_type); - let executable_path = browser.get_executable_path(&browser_dir)?; + let executable_path = browser + .get_executable_path(&browser_dir) + .map_err(|e| format!("Failed to get executable path: {}", e))?; let output = Command::new(executable_path) .args(["-profile", &updated_profile.profile_path, "-new-tab", url]) @@ -1114,7 +1116,9 @@ end try browser_dir.push(&updated_profile.version); let browser = create_browser(browser_type); - let executable_path = browser.get_executable_path(&browser_dir)?; + let executable_path = browser + .get_executable_path(&browser_dir) + .map_err(|e| format!("Failed to get executable path: {}", e))?; // Try to open in existing instance let output = Command::new(executable_path)