fix(tray): fix clippy uninlined format args warning

Use inline format arguments: {app_type_str} instead of {}
This commit is contained in:
YoVinchen
2026-01-20 11:37:39 +08:00
parent 4f6dfff179
commit 48c434a20a
+4 -2
View File
@@ -225,8 +225,10 @@ fn handle_auto_click(app: &tauri::AppHandle, app_type: &AppType) -> Result<(), A
}
// 2) 执行 Live 配置接管(确保该 app 被代理接管)
log::info!("[Tray] Auto 模式:对 {} 执行接管", app_type_str);
if let Err(e) = futures::executor::block_on(proxy_service.set_takeover_for_app(app_type_str, true)) {
log::info!("[Tray] Auto 模式:对 {app_type_str} 执行接管");
if let Err(e) =
futures::executor::block_on(proxy_service.set_takeover_for_app(app_type_str, true))
{
log::error!("[Tray] 执行接管失败: {e}");
return Err(AppError::Message(format!("执行接管失败: {e}")));
}