From f2dcbc8ef9cd1f6c42cba76c7f74799c1e03be01 Mon Sep 17 00:00:00 2001 From: ByteColtX Date: Wed, 6 May 2026 10:59:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(main):=20=E4=BF=AE=E5=A4=8D=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=A8=A1=E5=BC=8F=E5=8F=82=E6=95=B0=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E7=9A=84=20clippy=20=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 550dec2..ce1cee7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,12 +84,15 @@ fn init_logging(directive: &str) -> Result<(), String> { fn determine_startup_mode( args: &[String], - _tray_background_requested: bool, + tray_background_requested: bool, ) -> Result { + #[cfg(not(target_os = "windows"))] + let _ = tray_background_requested; + #[cfg(target_os = "windows")] { if args.is_empty() { - return Ok(if _tray_background_requested { + return Ok(if tray_background_requested { StartupMode::Tray } else { StartupMode::TrayBootstrap