Fix clippy

This commit is contained in:
Alex 2022-07-22 19:06:56 +02:00
parent 605a630333
commit 68087ee13d
Signed by untrusted user: lx
GPG key ID: 0E496D15096376BE
2 changed files with 1 additions and 5 deletions

View file

@ -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(())
}

View file

@ -450,7 +450,6 @@ fn body_from_blocks_range(
let garage = garage.clone();
async move {
let data = garage.block_manager.rpc_get_block(&block.hash).await?;
let data = Bytes::from(data);
let start_in_block = if true_offset > begin {
0
} else {