about summary refs log tree commit diff
path: root/tvix/eval/src/builtins/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/builtins/mod.rs')
-rw-r--r--tvix/eval/src/builtins/mod.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index a79199339c13..6723b8d626ae 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -161,9 +161,12 @@ mod pure_builtins {
                     span,
                 )
                 .await?
-                .to_str()?,
+                .to_contextful_str()?,
         };
-        let result: String = s.rsplit_once('/').map(|(_, x)| x).unwrap_or(&s).into();
+        let result: NixString = NixString::new_inherit_context_from(
+            &s,
+            s.rsplit_once('/').map(|(_, x)| x).unwrap_or(&s),
+        );
         Ok(result.into())
     }