From e1783c45a4f9fc8d2b46d9b647c1fe49d883ad86 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 10 Mar 2023 13:14:00 +0100 Subject: refactor(tvix/store/blobwriter): don't clone This already is a &CS, so we don't need to clone(). Change-Id: I5397a5948ae7fe4781f18df760a79047f83dca01 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8243 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: tazjin --- tvix/store/src/blobwriter.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tvix/store/src/blobwriter.rs b/tvix/store/src/blobwriter.rs index 9b4dcb8f21ef..50471a97c3af 100644 --- a/tvix/store/src/blobwriter.rs +++ b/tvix/store/src/blobwriter.rs @@ -144,8 +144,7 @@ impl std::io::Write for BlobWriter<'_, CS> let blob_meta_chunks: Vec> = chunk_slices .into_par_iter() .map(|chunk_slice| { - let chunk_service = self.chunk_service.clone(); - let chunk_digest = upload_chunk(chunk_service.clone(), chunk_slice.to_vec())?; + let chunk_digest = upload_chunk(self.chunk_service, chunk_slice.to_vec())?; Ok(proto::blob_meta::ChunkMeta { digest: chunk_digest, -- cgit 1.4.1