Skip to content

Commit

Permalink
another clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Aug 9, 2023
1 parent d84a831 commit 3684ace
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/codecs/webp/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ impl<W: Write> WebPEncoder<W> {
vec![0u16; 256],
vec![0u16; 256],
];
for code in codes.iter_mut() {
for i in 0..256 {
code[i] = (i as u8).reverse_bits() as u16;
for code_group in codes.iter_mut() {
for (i, code) in code_group.iter_mut().enumerate() {
*code = (i as u8).reverse_bits() as u16;
}
}

Expand Down

0 comments on commit 3684ace

Please sign in to comment.