fix: eliminate clippy errors

This commit is contained in:
陈启 committed 2026-06-22 14:13:53 +08:00
1 parent a658c09f09
commit c7a1176381
1 file changed
+1 -1
+1 -1
View File
@@ -518,7 +518,7 @@ impl Image {
}
pub(crate) fn colortype(&self) -> TiffResult<ColorType> {
let is_alpha_extra_samples = match self.extra_samples.as_slice().get(0) {
let is_alpha_extra_samples = match self.extra_samples.as_slice().first() {
Some(ExtraSamples::AssociatedAlpha) | Some(ExtraSamples::UnassociatedAlpha) => true,
// In lenient mode, keep unspecified alpha interpretation logic compatible with libtiff
// See Issue #341