about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-11-28T11·46-0800
committerclbot <clbot@tvl.fyi>2022-11-30T10·44+0000
commitdfdebece14989c8d94e301848aa8cd701e5c9a0a (patch)
tree2248a547e24609de5b9b9b3b6c9a2e91ef6782b2
parente4a046bacdb807c0ea346aed75edaa21033e5f9f (diff)
feat(tvix/eval): From<Rc<Vec<Value>>> for NixList r/5354
Change-Id: I2ab53453ed7370b520bb929ef7285e4f23eec65b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7453
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Autosubmit: Adam Joseph <adam@westernsemico.com>
-rw-r--r--tvix/eval/src/value/list.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs
index f90d625ce3..2604b935ed 100644
--- a/tvix/eval/src/value/list.rs
+++ b/tvix/eval/src/value/list.rs
@@ -26,6 +26,12 @@ impl TotalDisplay for NixList {
     }
 }
 
+impl From<Rc<Vec<Value>>> for NixList {
+    fn from(v: Rc<Vec<Value>>) -> Self {
+        Self(v)
+    }
+}
+
 impl From<Vec<Value>> for NixList {
     fn from(vs: Vec<Value>) -> Self {
         Self(Rc::new(vs))