about summary refs log tree commit diff
path: root/tvix/glue/benches
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-02-20T10·35+0700
committerflokli <flokli@flokli.de>2024-02-20T12·24+0000
commitd9565a4d0af3bffd735a77aa6f1fd0ec0e03b14a (patch)
treed5202b769dc21670957b23abc600c7e95835247b /tvix/glue/benches
parentd0d1027a853882f8bb44ac26c865f04bfa42ed70 (diff)
refactor(tvix): don't use Rc::clone explicitly r/7576
All these functions have an Rc of Rc<TvixStoreIO> or Rc<dyn StoreIO>, so
we can call io.clone() directly.

Change-Id: I96a5bcb9af4aca93892cb72bcfaf14540da52381
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10989
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/glue/benches')
-rw-r--r--tvix/glue/benches/eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/glue/benches/eval.rs b/tvix/glue/benches/eval.rs
index 11435707aca6..2bbe10fe93b4 100644
--- a/tvix/glue/benches/eval.rs
+++ b/tvix/glue/benches/eval.rs
@@ -46,7 +46,7 @@ fn interpret(code: &str) {
     );
 
     eval.builtins.extend(impure_builtins());
-    add_derivation_builtins(&mut eval, Rc::clone(&tvix_store_io));
+    add_derivation_builtins(&mut eval, tvix_store_io.clone());
     add_fetcher_builtins(&mut eval, tvix_store_io);
     configure_nix_path(
         &mut eval,