Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Oct 29, 2024
1 parent bfff091 commit c6b462f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/codecs/avif/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,10 @@ impl<R: Read> ImageDecoder for AvifDecoder<R> {
let target_expand_bits = 16u32.saturating_sub(self.picture.bit_depth() as u32);
if target_expand_bits > 0 {
for rgba in rgba16_buf.chunks_exact_mut(4) {
rgba[0] = rgba[0] << target_expand_bits;
rgba[1] = rgba[1] << target_expand_bits;
rgba[2] = rgba[2] << target_expand_bits;
rgba[3] = rgba[3] << target_expand_bits;
rgba[0] <<= target_expand_bits;
rgba[1] <<= target_expand_bits;
rgba[2] <<= target_expand_bits;
rgba[3] <<= target_expand_bits;
}
}
}
Expand Down

0 comments on commit c6b462f

Please sign in to comment.