From a9ca8e42d201bd5bbdab2ca9651085ee16dccb6d Mon Sep 17 00:00:00 2001 From: yoriswind <164435053+yoriswind@users.noreply.github.com> Date: Sat, 21 Nov 2026 14:37:17 -0800 Subject: [PATCH] Format the streamed PNG fixture construction --- crates/image-codecs/src/codecs/png.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/image-codecs/src/codecs/png.rs b/crates/image-codecs/src/codecs/png.rs index 12e108234d..fceaabbc6c 100644 --- a/crates/image-codecs/src/codecs/png.rs +++ b/crates/image-codecs/src/codecs/png.rs @@ -2338,10 +2338,8 @@ mod streamed_tests { for row in pixels.chunks_exact_mut(stride).skip(h as usize / 2) { row[0] ^= 0x5a; } - let img = Image::from_raw(w, h, layout, sample, pixels) - .unwrap() - .with_icc(Some((0..600u32).map(|i| (i % 251) as u8).collect())) - .with_meta(meta); + let img = + Image::from_raw(w, h, layout, sample, pixels).unwrap().with_icc(Some((0..600u32).map(|i| (i % 251) as u8).collect())).with_meta(meta); let level = PngCompression::Default; let opts = EncodeOptions { png_compression: level, ..Default::default() }; let whole = crate::encode(&img, Format::Png, &opts).unwrap();