mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-06-08 07:53:57 +02:00
chore: linting
This commit is contained in:
@@ -8,6 +8,10 @@ use std::process::Command;
|
||||
/// force-killed unrelated processes that happened to mention the path (editors,
|
||||
/// `tail`, a terminal that `cd`'d there, or another profile whose path has this
|
||||
/// one as a prefix). Mirrors the precise matching in browser_runner/wayfern_manager.
|
||||
///
|
||||
/// Only the macOS and Linux process-kill paths use this; Windows has no
|
||||
/// `find_processes_by_profile_path`, so gate it to avoid a dead-code error there.
|
||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||
fn cmd_matches_profile_path(cmd: &[std::ffi::OsString], profile_path: &str) -> bool {
|
||||
let args: Vec<&str> = cmd.iter().filter_map(|a| a.to_str()).collect();
|
||||
for (i, arg) in args.iter().enumerate() {
|
||||
|
||||
Reference in New Issue
Block a user