mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 16:26:16 +08:00
fix(tray): fix clippy uninlined format args warning
Use inline format arguments: {app_type_str} instead of {}
This commit is contained in:
@@ -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}")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user