From 8b77c7fcd7e9af42dc5145aa9f781dd7c2f05506 Mon Sep 17 00:00:00 2001 From: Yureka Date: Fri, 19 Jul 2024 15:22:48 +0200 Subject: refactor(tvix/store): use composition in tvix_store crate Change-Id: Ie6290b296baba2b987f1a61c9bb4c78549ac11f1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11983 Reviewed-by: flokli Autosubmit: yuka Tested-by: BuildkiteCI --- tvix/castore/src/composition.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tvix/castore/src') diff --git a/tvix/castore/src/composition.rs b/tvix/castore/src/composition.rs index 18a7672846b8..daa8a5008a04 100644 --- a/tvix/castore/src/composition.rs +++ b/tvix/castore/src/composition.rs @@ -454,4 +454,11 @@ impl Composition { *entry = Box::new(new_val); ret } + + pub fn context(&self) -> CompositionContext { + CompositionContext { + stack: vec![], + composition: Some(self), + } + } } -- cgit 1.4.1