From 2f33409a8b19d764caea597e2a1127d7860cc444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Sat, 11 Apr 2026 04:55:53 +0800 Subject: [PATCH] fix: allow unused_variables for reload_gateway_internal (app unused on macOS) --- src-tauri/src/commands/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/commands/config.rs b/src-tauri/src/commands/config.rs index d41eb90..974f084 100644 --- a/src-tauri/src/commands/config.rs +++ b/src-tauri/src/commands/config.rs @@ -4919,6 +4919,7 @@ async fn reload_gateway_via_http() -> Result { /// 重载 Gateway 服务 /// Windows/Linux: 优先尝试 HTTP 热重载(不重启进程) /// 如果 HTTP 重载失败,回退到 restart_service(会触发 Guardian 重启循环) +#[allow(unused_variables)] async fn reload_gateway_internal(app: Option<&tauri::AppHandle>) -> Result { #[cfg(target_os = "macos")] {