diff options
author | Florian Klink <flokli@flokli.de> | 2024-02-20T10·35+0700 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-02-20T12·24+0000 |
commit | d9565a4d0af3bffd735a77aa6f1fd0ec0e03b14a (patch) | |
tree | d5202b769dc21670957b23abc600c7e95835247b /tvix/cli/src/main.rs | |
parent | d0d1027a853882f8bb44ac26c865f04bfa42ed70 (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/cli/src/main.rs')
-rw-r--r-- | tvix/cli/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs index d765fa98392c..b7394a984b3f 100644 --- a/tvix/cli/src/main.rs +++ b/tvix/cli/src/main.rs @@ -129,7 +129,7 @@ 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, 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, &args.nix_search_path); |