From 87f7b7d9446476e04f38b0c75f6966c8efce293f Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Thu, 12 Nov 2026 03:09:01 -0500 Subject: [PATCH] M5: drop two lint allows the argument count does not need The workspace threshold for too_many_arguments is 10; hit_rec and rec take 8. Co-Authored-By: Claude Opus 5.5 Model-Effort: Opus 5.5 drove and reviewed --- crates/doc/src/geometry.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/doc/src/geometry.rs b/crates/doc/src/geometry.rs index fa81926d9..cc1a218e9 100644 --- a/crates/doc/src/geometry.rs +++ b/crates/doc/src/geometry.rs @@ -212,7 +212,6 @@ pub struct HitOpts { pub locked: bool, } -#[allow(clippy::too_many_arguments)] fn hit_rec( doc: &Document, id: NodeId, @@ -268,7 +267,6 @@ pub fn layers_at(doc: &Document, page: NodeId, pt: Point, tol: f64, result: Bool /// Clip content is honoured; boolean groups (hit where their `result` is) and sections with /// hidden contents count as one layer. pub fn layers_at_opts(doc: &Document, page: NodeId, pt: Point, tol: f64, result: BoolResult, opts: HitOpts) -> Vec<(NodeId, usize)> { - #[allow(clippy::too_many_arguments)] fn rec(doc: &Document, id: NodeId, pt: Point, tol: f64, depth: usize, result: BoolResult, opts: HitOpts, out: &mut Vec<(NodeId, usize)>) { let Some(n) = doc.node(id) else { return }; if !n.visible || n.locked && !opts.locked || depth > 512 {