chore: linting

This commit is contained in:
zhom
2025-11-29 14:12:46 +04:00
parent 5d7ed0430e
commit a48d03a1e4
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -1284,12 +1284,13 @@ impl BrowserRunner {
log::warn!("Warning: Failed to stop proxy for PID {pid}: {e}");
}
let profiles_dir = self.profile_manager.get_profiles_dir();
let profile_data_path = profile.get_profile_data_path(&profiles_dir);
let profile_path_str = profile_data_path.to_string_lossy().to_string();
#[cfg(target_os = "macos")]
platform_browser::macos::kill_browser_process_impl(pid, Some(&profile_path_str)).await?;
{
let profiles_dir = self.profile_manager.get_profiles_dir();
let profile_data_path = profile.get_profile_data_path(&profiles_dir);
let profile_path_str = profile_data_path.to_string_lossy().to_string();
platform_browser::macos::kill_browser_process_impl(pid, Some(&profile_path_str)).await?;
}
#[cfg(target_os = "windows")]
platform_browser::windows::kill_browser_process_impl(pid).await?;
+1 -1
View File
@@ -3,12 +3,12 @@ use crate::profile::BrowserProfile;
use std::ffi::OsString;
use std::path::Path;
use std::process::Command;
use sysinfo::{Pid, System};
// Platform-specific modules
#[cfg(target_os = "macos")]
pub mod macos {
use super::*;
use sysinfo::{Pid, System};
pub fn is_tor_or_mullvad_browser(exe_name: &str, cmd: &[OsString], browser_type: &str) -> bool {
match browser_type {