From d3ecef1a5b35d1a5a78ddba218fae89553c12ee5 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 9 Dec 2023 13:09:20 +0200 Subject: refactor(tvix/eval): address clippy lints Change-Id: Ic2bd4e8291b30ceac9fa0e88a4f56e61ae99b603 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10227 Reviewed-by: tazjin Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/eval/builtin-macros/tests/tests.rs | 2 +- tvix/eval/src/value/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix') 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 { + pub async fn builtin_try_eval(_co: GenCo, #[lazy] _x: Value) -> Result { 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"), -- cgit 1.4.1