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.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index d9f8567886e3..3048b32fb550 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -476,7 +476,7 @@ mod pure_builtins {
     async fn builtin_filterSource(_co: GenCo, #[lazy] _e: Value) -> Result<Value, ErrorKind> {
         // TODO: implement for nixpkgs compatibility
         Ok(Value::Catchable(CatchableErrorKind::UnimplementedFeature(
-            "filterSource".to_string(),
+            "filterSource".into(),
         )))
     }
 
@@ -695,7 +695,7 @@ mod pure_builtins {
     ) -> Result<Value, ErrorKind> {
         // FIXME: propagate contexts here.
         Ok(Value::Catchable(CatchableErrorKind::UnimplementedFeature(
-            "hashString".to_string(),
+            "hashString".into(),
         )))
     }
 
@@ -1392,7 +1392,7 @@ mod pure_builtins {
         // TODO(sterni): coerces to string
         // We do not care about the context here explicitly.
         Ok(Value::Catchable(CatchableErrorKind::Throw(
-            message.to_contextful_str()?.to_string(),
+            message.to_contextful_str()?.to_string().into(),
         )))
     }
 
@@ -1531,9 +1531,7 @@ pub fn pure_builtins() -> Vec<(&'static str, Value)> {
     // TODO: implement for nixpkgs compatibility
     result.push((
         "__curPos",
-        Value::Catchable(CatchableErrorKind::UnimplementedFeature(
-            "__curPos".to_string(),
-        )),
+        Value::Catchable(CatchableErrorKind::UnimplementedFeature("__curPos".into())),
     ));
 
     result