mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-05-12 04:41:32 +02:00
chore: fix clippy on windows build
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user