diff options
Diffstat (limited to 'tvix/eval/src/value/list.rs')
-rw-r--r-- | tvix/eval/src/value/list.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs index f90d625ce353..2604b935ed67 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)) |