From 39cddb95beb073b4bb93ec4e75bbf4b02bd60bc6 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 22 Dec 2023 14:23:37 +0200 Subject: refactor(tvix/store/bin): remove unneeded clone Change-Id: Ib94376db3a57853d980112919c2d6fcc0f566883 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10407 Tested-by: BuildkiteCI Reviewed-by: raitobezarius Autosubmit: flokli --- tvix/store/src/bin/tvix-store.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tvix/store/src/bin') diff --git a/tvix/store/src/bin/tvix-store.rs b/tvix/store/src/bin/tvix-store.rs index 2669073c91..dcc6d5df8f 100644 --- a/tvix/store/src/bin/tvix-store.rs +++ b/tvix/store/src/bin/tvix-store.rs @@ -276,10 +276,8 @@ async fn main() -> Result<(), Box> { // Ask the PathInfoService for the NAR size and sha256 let root_node_copy = root_node.clone(); - let path_info_service_clone = path_info_service.clone(); - let (nar_size, nar_sha256) = path_info_service_clone - .calculate_nar(&root_node_copy) - .await?; + let (nar_size, nar_sha256) = + path_info_service.calculate_nar(&root_node_copy).await?; let name = path .file_name() -- cgit 1.4.1