about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-12-09T11·09+0200
committerclbot <clbot@tvl.fyi>2023-12-09T12·58+0000
commitd3ecef1a5b35d1a5a78ddba218fae89553c12ee5 (patch)
tree9f2ff71c8a465bf0752fc5cb3736083d3ce3b84b
parentf11c6d610ce002774df714cf2c998989643dccfa (diff)
refactor(tvix/eval): address clippy lints r/7134
Change-Id: Ic2bd4e8291b30ceac9fa0e88a4f56e61ae99b603
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10227
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
-rw-r--r--tvix/eval/builtin-macros/tests/tests.rs2
-rw-r--r--tvix/eval/src/value/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/builtin-macros/tests/tests.rs b/tvix/eval/builtin-macros/tests/tests.rs
index 4713743e5295..288b6670e119 100644
--- a/tvix/eval/builtin-macros/tests/tests.rs
+++ b/tvix/eval/builtin-macros/tests/tests.rs
@@ -15,7 +15,7 @@ mod builtins {
     }
 
     #[builtin("tryEval")]
-    pub async fn builtin_try_eval(co: GenCo, #[lazy] _x: Value) -> Result<Value, ErrorKind> {
+    pub async fn builtin_try_eval(_co: GenCo, #[lazy] _x: Value) -> Result<Value, ErrorKind> {
         unimplemented!("builtin is never called")
     }
 }
diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs
index 6d9a6ada73bb..2fb27d8dc885 100644
--- a/tvix/eval/src/value/mod.rs
+++ b/tvix/eval/src/value/mod.rs
@@ -870,7 +870,7 @@ mod tests {
 
         #[test]
         fn format_float() {
-            let ff = vec![
+            let ff = [
                 (0f64, "0"),
                 (1.0f64, "1"),
                 (-0.01, "-0.01"),