Format the streamed PNG fixture construction

This commit is contained in:
yoriswind committed 2026-11-21 14:37:17 -08:00
1 parent a2e0d965e3
commit a9ca8e42d2
1 file changed
+2 -4
+2 -4
View File
@@ -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();