From 87d3fac6762b5b2f71d766eadf652d7762213d2b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 5 Nov 2023 21:02:21 +0300 Subject: chore(tvix): add missing clippy attributes & config For cases where clippy lints don't apply to us, or something is misfiring, add appropriate configuration. Relates to b/321. Change-Id: I0af453910b4a4112bf685b2a8e9a73de10ec87ea Reviewed-on: https://cl.tvl.fyi/c/depot/+/9965 Reviewed-by: flokli Autosubmit: tazjin Tested-by: BuildkiteCI --- tvix/eval/src/lib.rs | 1 + tvix/eval/src/value/mod.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'tvix/eval') diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs index 4227014c22..60b1102d5d 100644 --- a/tvix/eval/src/lib.rs +++ b/tvix/eval/src/lib.rs @@ -288,6 +288,7 @@ impl<'code, 'co, 'ro> Evaluation<'code, 'co, 'ro> { /// Internal helper function for common parsing & compilation logic /// between the public functions. +#[allow(clippy::too_many_arguments)] // internal API, no point making an indirection type fn parse_compile_internal( result: &mut EvaluationResult, code: &str, diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index 3a9dcf2c8d..e4f8bf0fd8 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -469,6 +469,7 @@ impl Value { // Special-case for derivation comparisons: If both attribute sets // have `type = derivation`, compare them by `outPath`. + #[allow(clippy::single_match)] // might need more match arms later match (a1.select("type"), a2.select("type")) { (Some(v1), Some(v2)) => { let s1 = generators::request_force(&co, v1.clone()).await.to_str(); -- cgit 1.4.1