From eba4818e9940995e3727f61bbe0c9d803659abb7 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Tue, 27 Oct 2026 23:37:39 +0800 Subject: [PATCH] fix(sysopt): gate shared macOS bypass constant to macOS builds MACOS_DEFAULT_BYPASS is referenced only from cfg(target_os = "macos") code in sysopt.rs, so clippy on Linux and Windows flagged it as dead code under -D warnings. --- src-tauri/src/constants.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/constants.rs b/src-tauri/src/constants.rs index 20b461f31..b241ff220 100644 --- a/src-tauri/src/constants.rs +++ b/src-tauri/src/constants.rs @@ -16,6 +16,7 @@ pub mod network { pub mod proxy { /// Single source of the macOS default bypass list; both proxy backends compose from it. + #[cfg(target_os = "macos")] pub const MACOS_DEFAULT_BYPASS: &str = "127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,*.crashlytics.com,"; }