aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3/copy.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-22 19:06:56 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-29 12:25:03 +0200
commit68087ee13dc22dbaeb0c1fa8dcb4bdbaa82098a6 (patch)
tree6dfb63c24ae6a14350ce19d9e08bef27ff0fe36d /src/api/s3/copy.rs
parent605a630333c8ee60c55fe011a375c01277bba173 (diff)
downloadgarage-68087ee13dc22dbaeb0c1fa8dcb4bdbaa82098a6.tar.gz
garage-68087ee13dc22dbaeb0c1fa8dcb4bdbaa82098a6.zip
Fix clippy
Diffstat (limited to 'src/api/s3/copy.rs')
-rw-r--r--src/api/s3/copy.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/api/s3/copy.rs b/src/api/s3/copy.rs
index 54a565e0..b54cbd23 100644
--- a/src/api/s3/copy.rs
+++ b/src/api/s3/copy.rs
@@ -366,10 +366,7 @@ pub async fn handle_upload_part_copy(
// we need to insert that data as a new block.
async move {
if must_upload {
- garage2
- .block_manager
- .rpc_put_block(final_hash, data.into())
- .await
+ garage2.block_manager.rpc_put_block(final_hash, data).await
} else {
Ok(())
}