mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-10 12:51:56 +00:00
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:
parent
a2a66a6103
commit
12390c91d3
@ -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(¶m)?;
|
||||
|
||||
let backup_ns = optional_ns_param(¶m)?;
|
||||
@ -194,7 +194,7 @@ async fn forget_snapshots(param: Value) -> Result<Value, Error> {
|
||||
|
||||
record_repository(&repo);
|
||||
|
||||
Ok(Value::Null)
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[api(
|
||||
|
Loading…
Reference in New Issue
Block a user