From cff8daf1857e4d5581041f7cb1b435d631b6e30c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 9 Oct 2026 03:32:19 +0000 Subject: [PATCH] automation test: as_chunks for the preview pixel check (clippy 1.99 chunks_exact_to_as_chunks) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UHgFEHEsefoQoBParH47JA (cherry picked from commit 7406c26bd4cde2d4465f6701d638b1ff78ec688d) --- crates/automation/tests/mcp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/automation/tests/mcp.rs b/crates/automation/tests/mcp.rs index 6ae5a725..ccd9b922 100644 --- a/crates/automation/tests/mcp.rs +++ b/crates/automation/tests/mcp.rs @@ -643,7 +643,7 @@ async fn headless_previews_preserve_document_indices() { let png = base64::engine::general_purpose::STANDARD.decode(&image.data).unwrap(); let image = photocraft_codecs::decode(&png).unwrap(); assert_eq!(image.dimensions(), dimensions); - assert!(image.to_rgba8().chunks_exact(4).all(|actual| actual == pixel)); + assert!(image.to_rgba8().as_chunks::<4>().0.iter().all(|actual| actual[..] == pixel[..])); } assert_eq!(json_of(&call(&client, "session_list", json!({})).await)["active"], 1); let tools = client.list_all_tools().await.unwrap();