From 91e6381ba540c0fb12bca8d64fc15bb2252e101b Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Mon, 8 Jun 2026 00:44:03 +0400 Subject: [PATCH] chore: linting --- src-tauri/src/platform_browser.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-tauri/src/platform_browser.rs b/src-tauri/src/platform_browser.rs index 5517419..12f88f9 100644 --- a/src-tauri/src/platform_browser.rs +++ b/src-tauri/src/platform_browser.rs @@ -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() {