diff options
Diffstat (limited to 'tvix/eval/src/value/string.rs')
-rw-r--r-- | tvix/eval/src/value/string.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/eval/src/value/string.rs b/tvix/eval/src/value/string.rs index 531bcf547b0b..d4776caea403 100644 --- a/tvix/eval/src/value/string.rs +++ b/tvix/eval/src/value/string.rs @@ -11,3 +11,9 @@ impl Display for NixString { f.write_str(self.0.as_str()) } } + +impl From<&str> for NixString { + fn from(s: &str) -> Self { + NixString(s.to_string()) + } +} |