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.
This commit is contained in:
FredApps committed 2026-12-02 13:40:41 +07:00
1 parent b47f67d5c0
commit 992002a2ba
1 file changed
+1 -1
@@ -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");
}