Use the ? operator instead

This commit is contained in:
Gwilym Inzani 2024-04-03 11:16:44 +01:00
parent 37ecd48a40
commit 4144a2be0a

View file

@ -38,9 +38,7 @@ impl<'a> Iterator for GwilymDecodeIter<'a> {
type Item = u32;
fn next(&mut self) -> Option<Self::Item> {
let Some(chunk) = self.chunks.next() else {
return None;
};
let chunk = self.chunks.next()?;
let value = decode_chunk(chunk);
if value & (1 << 16) != 0 {