mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-01 13:50:09 +08:00
fix(ci): 收敛服务状态描述查询的 Clippy 告警
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user