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; type Item = u32;
fn next(&mut self) -> Option<Self::Item> { fn next(&mut self) -> Option<Self::Item> {
let Some(chunk) = self.chunks.next() else { let chunk = self.chunks.next()?;
return None;
};
let value = decode_chunk(chunk); let value = decode_chunk(chunk);
if value & (1 << 16) != 0 { if value & (1 << 16) != 0 {