about summary refs log tree commit diff
path: root/tvix/eval/src/errors.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-24T13·38+0300
committertazjin <tazjin@tvl.su>2022-09-29T11·47+0000
commite31f8f735f72fa1d71f4a030ff778ebe640e9fb1 (patch)
tree086bb567d76e2d89e789b6b9cf1d37703cc63834 /tvix/eval/src/errors.rs
parentd54aeb1f2055bdac05cb62ab30b6c63dc86a78e0 (diff)
chore(tvix/eval): fix all current clippy lints r/4991
Change-Id: I28d6af8cb408f8427a75d30b9120aaa809a1ea40
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6784
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
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 '{}'",