[pbs-devel] [PATCH proxmox-backup 1/1] Fix formatting in proxmox-backup-manager
Stefan Hanreich
s.hanreich at proxmox.com
Tue Nov 29 16:53:43 CET 2022
Small followup to my previous commit, fixing minor formatting issues.
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
I have since properly set up rustfmt ;)
src/bin/proxmox-backup-manager.rs | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/bin/proxmox-backup-manager.rs b/src/bin/proxmox-backup-manager.rs
index b9bfd701..06330c78 100644
--- a/src/bin/proxmox-backup-manager.rs
+++ b/src/bin/proxmox-backup-manager.rs
@@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::io::{self, Write};
use std::str::FromStr;
-use anyhow::{Error, format_err};
+use anyhow::{format_err, Error};
use serde_json::{json, Value};
use proxmox_router::{cli::*, RpcEnvironment};
@@ -324,10 +324,7 @@ async fn pull_datastore(
.as_object_mut()
.ok_or_else(|| format_err!("limit is not an Object"))?;
- args
- .as_object_mut()
- .unwrap()
- .append(limit_map);
+ args.as_object_mut().unwrap().append(limit_map);
let result = client.post("api2/json/pull", Some(args)).await?;
--
2.30.2
More information about the pbs-devel
mailing list