From 2e2d3ec2447840879cd808a60b487b6f5c3b4a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 13 Feb 2024 10:47:03 +0100 Subject: [PATCH] client: rename variable to sensible name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit two-letter abbreviations should only be used for things that have a very common meaning (e.g. NS, RE, ..), not arbitrary things. Signed-off-by: Fabian Grünbichler --- proxmox-backup-client/src/namespace.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-backup-client/src/namespace.rs b/proxmox-backup-client/src/namespace.rs index abf31ef4..2929e394 100644 --- a/proxmox-backup-client/src/namespace.rs +++ b/proxmox-backup-client/src/namespace.rs @@ -151,8 +151,8 @@ async fn delete_namespace(param: Value, delete_groups: Option) -> Result<( let path = format!("api2/json/admin/datastore/{}/namespace", repo.store()); let mut param = json!({ "ns": backup_ns }); - if let Some(dg) = delete_groups { - param["delete-groups"] = serde_json::to_value(dg)?; + if let Some(value) = delete_groups { + param["delete-groups"] = serde_json::to_value(value)?; } let client = connect(&repo)?;