From df1592f3b9e38e3f85f0702a42368e448fd11a68 Mon Sep 17 00:00:00 2001 From: Sander in 't Veld Date: Sun, 5 Jan 2025 19:15:47 +0100 Subject: [PATCH] Fix clippy --- src/decoder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/decoder.rs b/src/decoder.rs index e228023..357bed9 100644 --- a/src/decoder.rs +++ b/src/decoder.rs @@ -749,7 +749,8 @@ impl WebPDecoder { 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); }