fix(ci): 收敛服务状态描述查询的 Clippy 告警

This commit is contained in:
晴天
2026-03-10 01:04:32 +08:00
parent 4e2b56d246
commit 9ed58af426

View File

@@ -1040,14 +1040,14 @@ pub async fn get_services_status() -> Result<Vec<ServiceStatus>, String> {
let mut results = Vec::new();
for label in &labels {
for label in labels.iter().map(String::as_str) {
let (running, pid) = check_service_status_for_label(uid, label).await;
results.push(ServiceStatus {
label: label.clone(),
label: label.to_string(),
pid,
running,
description: desc_map.get(label.as_str()).unwrap_or(&"").to_string(),
description: desc_map.get(label).unwrap_or(&"").to_string(),
cli_installed,
});
}