From 3ee1978910da4d854bf15e71719d170e724a61cf Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Mon, 26 Oct 2026 00:01:24 +0000 Subject: [PATCH] =?UTF-8?q?#3692:=20rebase=20onto=20main=20=E2=80=94=20rus?= =?UTF-8?q?tfmt=20after=20the=20merge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- crates/layout/src/contour.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/layout/src/contour.rs b/crates/layout/src/contour.rs index d5f18dc8a..e185aed1f 100644 --- a/crates/layout/src/contour.rs +++ b/crates/layout/src/contour.rs @@ -246,10 +246,8 @@ fn decode_alpha(bytes: &[u8], decoded: &mut u64) -> Result, OverBu return Ok(None); } // Only the header is read here (a PNG's `tRNS` counts as transparency). - let has_alpha = image::ImageReader::with_format(std::io::Cursor::new(bytes), pic.format) - .into_decoder() - .ok() - .is_some_and(|d| d.color_type().has_alpha()); + let has_alpha = + image::ImageReader::with_format(std::io::Cursor::new(bytes), pic.format).into_decoder().ok().is_some_and(|d| d.color_type().has_alpha()); if !has_alpha { return Ok(None); }