mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Use the ? operator instead
This commit is contained in:
parent
37ecd48a40
commit
4144a2be0a
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue