view_task_result: remove unnecessary &mut

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-12-30 13:35:51 +01:00
parent aa174e8e8a
commit 8ff886773f
2 changed files with 4 additions and 4 deletions

View File

@ -91,11 +91,11 @@ async fn create_datastore(mut param: Value) -> Result<Value, Error> {
let output_format = extract_output_format(&mut param);
let mut client = connect_to_localhost()?;
let client = connect_to_localhost()?;
let result = client.post("api2/json/config/datastore", Some(param)).await?;
view_task_result(&mut client, result, &output_format).await?;
view_task_result(&client, result, &output_format).await?;
Ok(Value::Null)
}