Skip to content

Commit

Permalink
Fix clippy issue (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored Dec 11, 2023
1 parent 81b3fe6 commit 9bbfb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codecs/webp/lossless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl<R: Read> LosslessDecoder<R> {
}

/// Adjusts the color map since it's subtraction coded
fn adjust_color_map(color_map: &mut Vec<u32>) {
fn adjust_color_map(color_map: &mut [u32]) {
for i in 1..color_map.len() {
color_map[i] = add_pixels(color_map[i], color_map[i - 1]);
}
Expand Down

0 comments on commit 9bbfb7d

Please sign in to comment.