diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index 3791aaf56..a547ddd4d 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -115,6 +115,15 @@ impl<'a> Deref for ForceResult<'a> { } } +impl From for Value +where + T: Into, +{ + fn from(t: T) -> Self { + Self::String(t.into()) + } +} + /// Constructors impl Value { /// Construct a [`Value::Attrs`] from a [`NixAttrs`].