about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/eval/src/value/attrs/tests.rs8
-rw-r--r--tvix/eval/src/warnings.rs4
2 files changed, 6 insertions, 6 deletions
diff --git a/tvix/eval/src/value/attrs/tests.rs b/tvix/eval/src/value/attrs/tests.rs
index c9e4022472..a495dec6f2 100644
--- a/tvix/eval/src/value/attrs/tests.rs
+++ b/tvix/eval/src/value/attrs/tests.rs
@@ -34,9 +34,9 @@ fn test_kv_attrs() {
     let kv_attrs = NixAttrs::construct(
         2,
         vec![
-            value_val.clone(),
+            value_val,
             forty_two_val.clone(),
-            name_val.clone(),
+            name_val,
             meaning_val.clone(),
         ],
     )
@@ -69,9 +69,9 @@ fn test_kv_attrs_iter() {
     let kv_attrs = NixAttrs::construct(
         2,
         vec![
-            value_val.clone(),
+            value_val,
             forty_two_val.clone(),
-            name_val.clone(),
+            name_val,
             meaning_val.clone(),
         ],
     )
diff --git a/tvix/eval/src/warnings.rs b/tvix/eval/src/warnings.rs
index a09c5746d3..6f4f541601 100644
--- a/tvix/eval/src/warnings.rs
+++ b/tvix/eval/src/warnings.rs
@@ -55,11 +55,11 @@ impl EvalWarning {
     fn message(&self, codemap: &CodeMap) -> String {
         match self.kind {
             WarningKind::DeprecatedLiteralURL => {
-                format!("URL literal syntax is deprecated, use a quoted string instead")
+                "URL literal syntax is deprecated, use a quoted string instead".to_string()
             }
 
             WarningKind::UselessInherit => {
-                format!("inherited variable already exists with the same value")
+                "inherited variable already exists with the same value".to_string()
             }
 
             WarningKind::UnusedBinding => {