about summary refs log tree commit diff
path: root/tvix/store/src/nar/mod.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-16T22·54+0100
committerclbot <clbot@tvl.fyi>2023-03-17T07·49+0000
commitb025ebb2a1ae989afc5ee3ae69cb920e97a4efdc (patch)
tree4cd74f7486140d82c86976d2a594fe49d6f04038 /tvix/store/src/nar/mod.rs
parent985f842e32852f0e1a110fbfdf64be654e9ced09 (diff)
refactor(tvix/store/nar): pass in &proto::node::Node r/6019
Passing in a &proto::node::Node into all this allows us consumers to
keep ownership of the proto::node::Node.

Change-Id: I44882a86c46826b06a8a8a0b24c18adfc7052662
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8316
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/src/nar/mod.rs')
-rw-r--r--tvix/store/src/nar/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/store/src/nar/mod.rs b/tvix/store/src/nar/mod.rs
index d9e0c8143b5a..d6a2f0889a5f 100644
--- a/tvix/store/src/nar/mod.rs
+++ b/tvix/store/src/nar/mod.rs
@@ -31,6 +31,6 @@ pub enum RenderError {
 pub trait NARCalculationService {
     fn calculate_nar(
         &self,
-        root_node: proto::node::Node,
+        root_node: &proto::node::Node,
     ) -> Result<proto::CalculateNarResponse, RenderError>;
 }