about summary refs log tree commit diff
path: root/tvix/cli/src
diff options
context:
space:
mode:
authoraspen <root@gws.fyi>2024-02-20T16·04+0000
committeraspen <root@gws.fyi>2024-02-21T18·36+0000
commitd74c68025b5d1ffea3cd4f9731ee53b6ca2c6271 (patch)
tree1e317a107891b3b866bda3c72582e49c1d166369 /tvix/cli/src
parent771200df7c311fc8b87a0a65a02e22a11d80cd66 (diff)
revert(tvix): don't use Rc::clone explicitly r/7588
This reverts commit d9565a4d0af3bffd735a77aa6f1fd0ec0e03b14a.

Reason for revert: this was intentional - putting Rc::clone instead of
.clone is a common Rust idiom, and makes it explicit that we're cloning
a shared reference, not an underlying resource

Change-Id: I41a5f323ee35d7025dc7bb02f7d5d05d0051798d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10995
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/cli/src')
-rw-r--r--tvix/cli/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs
index d8a51d28915c..436e895863ee 100644
--- a/tvix/cli/src/main.rs
+++ b/tvix/cli/src/main.rs
@@ -130,8 +130,8 @@ fn interpret(code: &str, path: Option<PathBuf>, args: &Args, explain: bool) -> b
     );
     eval.strict = args.strict;
     eval.builtins.extend(impure_builtins());
-    add_derivation_builtins(&mut eval, tvix_store_io.clone());
-    add_fetcher_builtins(&mut eval, tvix_store_io.clone());
+    add_derivation_builtins(&mut eval, Rc::clone(&tvix_store_io));
+    add_fetcher_builtins(&mut eval, Rc::clone(&tvix_store_io));
     add_import_builtins(&mut eval, tvix_store_io);
     configure_nix_path(&mut eval, &args.nix_search_path);