about summary refs log tree commit diff
path: root/tvix/eval/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/errors.rs')
-rw-r--r--tvix/eval/src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs
index 7ec43abb85a9..822ebdbc8cb4 100644
--- a/tvix/eval/src/errors.rs
+++ b/tvix/eval/src/errors.rs
@@ -162,7 +162,7 @@ impl Error {
                 format!("list index '{}' is out of bounds", index)
             }
 
-            ErrorKind::TailEmptyList => format!("'tail' called on an empty list"),
+            ErrorKind::TailEmptyList => "'tail' called on an empty list".to_string(),
 
             ErrorKind::TypeError { expected, actual } => format!(
                 "expected value of type '{}', but found a '{}'",