From 992002a2baf9f103d2f4517c5de973d5365b373f Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Wed, 2 Dec 2026 13:40:41 +0700 Subject: [PATCH] Use as_chunks in the opaque preview assertion The newer clippy flags chunks_exact with a constant size (chunks_exact_to_as_chunks) in export_dialog/tests.rs; the assertion is unchanged. --- crates/ui-egui/src/dialogs/export_dialog/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/dialogs/export_dialog/tests.rs b/crates/ui-egui/src/dialogs/export_dialog/tests.rs index 599fd127cf8..20efb9feb2e 100644 --- a/crates/ui-egui/src/dialogs/export_dialog/tests.rs +++ b/crates/ui-egui/src/dialogs/export_dialog/tests.rs @@ -1123,5 +1123,5 @@ fn a_panorama_previews_at_its_own_proportions_with_no_transparent_bands() { let f = Map::from_iter([("format".into(), json!("jpg")), ("scale".into(), json!(100))]); let pixels = super::preview_pixels(&default_preview_proxy(&doc, &f).unwrap(), None); assert_eq!(pixels.rgba.len(), pixels.width * pixels.height * 4); - assert!(pixels.rgba.chunks_exact(4).all(|px| px[3] == 255), "every preview pixel of an opaque image is opaque"); + assert!(pixels.rgba.as_chunks::<4>().0.iter().all(|px| px[3] == 255), "every preview pixel of an opaque image is opaque"); }