#3692: rebase onto main — rustfmt after the merge

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Martin Ball
2026-10-25 21:01:51 -04:00
committed by Dylan M. Taylor
co-authored by Claude Sonnet 5.5
parent 3cffe22c00
commit 3ee1978910
+2 -4
View File
@@ -246,10 +246,8 @@ fn decode_alpha(bytes: &[u8], decoded: &mut u64) -> Result<Option<Alpha>, 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);
}