fix(fmt): reformat storage.rs map_err closure for rustfmt compliance #133

Merged
sarman merged 1 commits from fix/proxmox-full-parity into beta 2026-06-23 00:23:32 +00:00
Showing only changes of commit 9eac746f05 - Show all commits

View File

@ -43,10 +43,12 @@ pub async fn list_storage_content_iso(
ticket: &str, ticket: &str,
) -> Result<Vec<serde_json::Value>, String> { ) -> Result<Vec<serde_json::Value>, String> {
let path = format!("nodes/{}/storage/{}/content", node, storage); let path = format!("nodes/{}/storage/{}/content", node, storage);
let response: serde_json::Value = client let response: serde_json::Value = client.get(&path, Some(ticket)).await.map_err(|e| {
.get(&path, Some(ticket)) format!(
.await "Failed to list storage content for {}/{}: {}",
.map_err(|e| format!("Failed to list storage content for {}/{}: {}", node, storage, e))?; node, storage, e
)
})?;
response response
.as_array() .as_array()