From dfdebece14989c8d94e301848aa8cd701e5c9a0a Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 28 Nov 2022 03:46:02 -0800 Subject: feat(tvix/eval): From>> for NixList Change-Id: I2ab53453ed7370b520bb929ef7285e4f23eec65b Reviewed-on: https://cl.tvl.fyi/c/depot/+/7453 Reviewed-by: tazjin Tested-by: BuildkiteCI Autosubmit: Adam Joseph --- tvix/eval/src/value/list.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tvix/eval/src') 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>> for NixList { + fn from(v: Rc>) -> Self { + Self(v) + } +} + impl From> for NixList { fn from(vs: Vec) -> Self { Self(Rc::new(vs)) -- cgit 1.4.1