PhotoCraft: An open-source, photo editor written by scratch in pure Rust
automation test: as_chunks for the preview pixel check (clippy 1.99 chunks_exact_to_as_chunks)
Claudecff8daf1857e
diff --git a/crates/automation/tests/mcp.rs b/crates/automation/tests/mcp.rsindex 6ae5a7258..ccd9b9221 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();