about summary refs log tree commit diff
path: root/tvix/store/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-12-22T12·23+0200
committerclbot <clbot@tvl.fyi>2023-12-22T13·29+0000
commit39cddb95beb073b4bb93ec4e75bbf4b02bd60bc6 (patch)
treeaf5d3ca6e8c73d33a42ac6feb2b17cb33e9ad0e7 /tvix/store/src
parent9627ef15de4a5fae705b6d59a0d3bf59d7ef9296 (diff)
refactor(tvix/store/bin): remove unneeded clone r/7253
Change-Id: Ib94376db3a57853d980112919c2d6fcc0f566883
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10407
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/src')
-rw-r--r--tvix/store/src/bin/tvix-store.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tvix/store/src/bin/tvix-store.rs b/tvix/store/src/bin/tvix-store.rs
index 2669073c9140..dcc6d5df8f45 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<dyn std::error::Error>> {
 
                         // 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()