From 885c6a1446127b31311f647eb9c7d23c769ecc82 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Fri, 30 May 2025 01:45:05 +0400 Subject: [PATCH] chore: fix clippy on windows build --- src-tauri/Cargo.toml | 4 +++- src-tauri/src/browser_runner.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ce46ac0..40c179d 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -33,9 +33,11 @@ lazy_static = "1.4" base64 = "0.22" zip = "4" async-trait = "0.1" -core-foundation="0.10" futures-util = "0.3" +[target.'cfg(target_os = "macos")'.dependencies] +core-foundation="0.10" + [dev-dependencies] tempfile = "3.13.0" tokio-test = "0.4.4" diff --git a/src-tauri/src/browser_runner.rs b/src-tauri/src/browser_runner.rs index b097ce3..3908f22 100644 --- a/src-tauri/src/browser_runner.rs +++ b/src-tauri/src/browser_runner.rs @@ -83,6 +83,7 @@ impl BrowserRunner { } // Helper function to validate PID for TOR/Mullvad browsers + // TODO: make available for other platforms once other functionality is implemented #[cfg(target_os = "macos")] fn validate_tor_mullvad_pid(&self, profile: &BrowserProfile, pid: u32) -> bool { let system = System::new_all(); @@ -135,6 +136,7 @@ impl BrowserRunner { false } } + pub fn get_binaries_dir(&self) -> PathBuf { let mut path = self.base_dirs.data_local_dir().to_path_buf(); path.push(if cfg!(debug_assertions) {