Skip to content

Commit

Permalink
Fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Oct 22, 2023
1 parent f3ff476 commit b7ba5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codecs/webp/vp8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ impl<R: Read> Vp8Decoder<R> {

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;
Expand Down

0 comments on commit b7ba5dd

Please sign in to comment.