From 3c50fd58e64ae46ac95511344fa9cb22adbd19f5 Mon Sep 17 00:00:00 2001 From: JordyUSA <75485565+JordyUSA@users.noreply.github.com> Date: Mon, 12 Oct 2026 18:02:30 +0700 Subject: [PATCH] Clippy 1.99: as_chunks for the Fill spot's completion (chunks_exact_to_as_chunks) Rust 1.99's clippy rejects `chunks_exact(3)` with a constant size (`chunks_exact_to_as_chunks`, -D warnings), which failed `cargo xtask ci` on main. Same behaviour: the completed pixels are copied as [f32; 3]. Co-Authored-By: Claude Opus 5.5 --- crates/pipeline/src/spots.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/pipeline/src/spots.rs b/crates/pipeline/src/spots.rs index 483f83f3c..f8b3fbbdf 100644 --- a/crates/pipeline/src/spots.rs +++ b/crates/pipeline/src/spots.rs @@ -247,8 +247,8 @@ fn fill_box(src: &mut [[f32; 3]], tgt: &[[f32; 3]], alpha: &[f32], bw: usize, bh let flat: Vec = tgt.iter().flatten().copied().collect(); let out = lightcraft_inpaint::complete(bw, bh, 3, &flat, &hole, &lightcraft_inpaint::CompleteParams::default()) .unwrap_or_else(|| lightcraft_inpaint::membrane_fill(bw, bh, 3, &flat, &hole)); - for (d, v) in src.iter_mut().zip(out.chunks_exact(3)) { - *d = [v[0], v[1], v[2]]; + for (d, v) in src.iter_mut().zip(out.as_chunks::<3>().0) { + *d = *v; } }