fix(fmt): reformat storage.rs map_err closure for rustfmt compliance #133
@ -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()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user