From b7ba5ddfc8b9847db5fce80fa8f51b8cb2d9a9c1 Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Sun, 22 Oct 2023 15:19:57 -0700 Subject: [PATCH] Fix clippy issue --- src/codecs/webp/vp8.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codecs/webp/vp8.rs b/src/codecs/webp/vp8.rs index 237ab89bd9..f18b64aeb4 100644 --- a/src/codecs/webp/vp8.rs +++ b/src/codecs/webp/vp8.rs @@ -1262,7 +1262,7 @@ impl Vp8Decoder { self.top = init_top_macroblocks(self.frame.width as usize); // Almost always the first macro block, except when non exists (i.e. `width == 0`) - self.left = self.top.get(0).cloned().unwrap_or_default(); + self.left = self.top.first().cloned().unwrap_or_default(); self.mbwidth = (self.frame.width + 15) / 16; self.mbheight = (self.frame.height + 15) / 16;