Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SLiV9 committed Jan 5, 2025
1 parent 049af55 commit df1592f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ impl<R: BufRead + Seek> WebPDecoder<R> {
WebPRiffChunk::VP8 => {
let reader = (&mut self.r).take(chunk_size);
let raw_frame = Vp8Decoder::decode_frame(reader)?;
if raw_frame.width as u32 != frame_width || raw_frame.height as u32 != frame_height
if u32::from(raw_frame.width) != frame_width
|| u32::from(raw_frame.height) != frame_height
{
return Err(DecodingError::InconsistentImageSizes);
}
Expand Down

0 comments on commit df1592f

Please sign in to comment.