diff --git a/proxmox-backup-client/src/snapshot.rs b/proxmox-backup-client/src/snapshot.rs index 46b1db09..a9976fbe 100644 --- a/proxmox-backup-client/src/snapshot.rs +++ b/proxmox-backup-client/src/snapshot.rs @@ -377,7 +377,7 @@ async fn update_notes(param: Value) -> Result { } )] /// Show protection status of the specified snapshot -async fn show_protection(param: Value) -> Result { +async fn show_protection(param: Value) -> Result<(), Error> { let repo = extract_repository_from_value(¶m)?; let path = required_string_param(¶m, "snapshot")?; @@ -411,7 +411,7 @@ async fn show_protection(param: Value) -> Result { ); } - Ok(Value::Null) + Ok(()) } #[api( @@ -433,7 +433,7 @@ async fn show_protection(param: Value) -> Result { } )] /// Update Protection Status of a snapshot -async fn update_protection(protected: bool, param: Value) -> Result { +async fn update_protection(protected: bool, param: Value) -> Result<(), Error> { let repo = extract_repository_from_value(¶m)?; let path = required_string_param(¶m, "snapshot")?; @@ -451,7 +451,7 @@ async fn update_protection(protected: bool, param: Value) -> Result CliCommandMap {