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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-10-18 11:04:35 +02:00
parent a2a66a6103
commit 12390c91d3

View File

@ -177,7 +177,7 @@ async fn list_snapshot_files(param: Value) -> Result<Value, Error> {
}
)]
/// Forget (remove) backup snapshots.
async fn forget_snapshots(param: Value) -> Result<Value, Error> {
async fn forget_snapshots(param: Value) -> Result<(), Error> {
let repo = extract_repository_from_value(&param)?;
let backup_ns = optional_ns_param(&param)?;
@ -194,7 +194,7 @@ async fn forget_snapshots(param: Value) -> Result<Value, Error> {
record_repository(&repo);
Ok(Value::Null)
Ok(())
}
#[api(