fix: eliminate clippy errors
This commit is contained in:
1 parent
a658c09f09
commit
c7a1176381
1 file changed
+1
-1
@@ -518,7 +518,7 @@ impl Image {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn colortype(&self) -> TiffResult<ColorType> {
|
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,
|
Some(ExtraSamples::AssociatedAlpha) | Some(ExtraSamples::UnassociatedAlpha) => true,
|
||||||
// In lenient mode, keep unspecified alpha interpretation logic compatible with libtiff
|
// In lenient mode, keep unspecified alpha interpretation logic compatible with libtiff
|
||||||
// See Issue #341
|
// See Issue #341
|
||||||
|
|||||||
Reference in new issue
Block a user