From 29e698a05c7f3cd9cc398319c60393c4c6d6d7f5 Mon Sep 17 00:00:00 2001 From: ruv Date: Sun, 31 May 2026 10:41:05 -0400 Subject: [PATCH] fix(ruview-swarm): clippy manual_is_multiple_of in lawnmower planner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI `clippy (-D warnings, --no-deps)` failed on patterns.rs:131 — `row % 2 == 0` is flagged by clippy::manual_is_multiple_of. Use `row.is_multiple_of(2)` (identical even-row check). Both CI clippy variants (--no-default-features and --features full,train) now pass. Co-Authored-By: claude-flow --- v2/crates/ruview-swarm/src/planning/patterns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/crates/ruview-swarm/src/planning/patterns.rs b/v2/crates/ruview-swarm/src/planning/patterns.rs index 506eb66a..26e774e6 100644 --- a/v2/crates/ruview-swarm/src/planning/patterns.rs +++ b/v2/crates/ruview-swarm/src/planning/patterns.rs @@ -128,7 +128,7 @@ fn serpentine_in_region( let y = y.min(y1); // Serpentine: even rows L→R, odd rows R→L. - let along = if row % 2 == 0 { col } else { cols - 1 - col }; + let along = if row.is_multiple_of(2) { col } else { cols - 1 - col }; let x = x0 + (along as f64 + 0.5) * scan_width_m; let x = x.min(x1);