[pbs-devel] [PATCH proxmox 3/5] s3-client: fix unintended match statement being an expression
Christian Ebner
c.ebner at proxmox.com
Mon Aug 25 12:32:46 CEST 2025
The match in question is not intendended to be an expression, so drop
the block trailing semicolon, adding it to the bail instead.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
proxmox-s3-client/src/client.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxmox-s3-client/src/client.rs b/proxmox-s3-client/src/client.rs
index 4301f1af..ab2582bf 100644
--- a/proxmox-s3-client/src/client.rs
+++ b/proxmox-s3-client/src/client.rs
@@ -684,7 +684,7 @@ impl S3Client {
Ok(PutObjectResponse::PreconditionFailed) => return Ok(true),
Ok(PutObjectResponse::NeedsRetry) => {
if retry >= MAX_S3_UPLOAD_RETRY - 1 {
- bail!("concurrent operation, upload failed")
+ bail!("concurrent operation, upload failed");
}
}
Err(err) => {
@@ -692,7 +692,7 @@ impl S3Client {
return Err(err.context("upload failed"));
}
}
- };
+ }
}
Ok(false)
}
--
2.47.2
More information about the pbs-devel
mailing list