From 12390c91d3e3f083b3b187579bdf17f0afa6e59f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 18 Oct 2023 11:04:35 +0200 Subject: [PATCH] client: forget snapshots: function signature returns no value Switch from serde_json::Value to an empty tuple, to not suggest this actually returns a value from the API other than a possible error. Signed-off-by: Thomas Lamprecht --- proxmox-backup-client/src/snapshot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-backup-client/src/snapshot.rs b/proxmox-backup-client/src/snapshot.rs index fcfe5840..f195c23b 100644 --- a/proxmox-backup-client/src/snapshot.rs +++ b/proxmox-backup-client/src/snapshot.rs @@ -177,7 +177,7 @@ async fn list_snapshot_files(param: Value) -> Result { } )] /// Forget (remove) backup snapshots. -async fn forget_snapshots(param: Value) -> Result { +async fn forget_snapshots(param: Value) -> Result<(), Error> { let repo = extract_repository_from_value(¶m)?; let backup_ns = optional_ns_param(¶m)?; @@ -194,7 +194,7 @@ async fn forget_snapshots(param: Value) -> Result { record_repository(&repo); - Ok(Value::Null) + Ok(()) } #[api(