diff --git a/agb-addr2line/src/gwilym_encoding.rs b/agb-addr2line/src/gwilym_encoding.rs index f6f643ec..1ce957f5 100644 --- a/agb-addr2line/src/gwilym_encoding.rs +++ b/agb-addr2line/src/gwilym_encoding.rs @@ -38,9 +38,7 @@ impl<'a> Iterator for GwilymDecodeIter<'a> { type Item = u32; fn next(&mut self) -> Option { - let Some(chunk) = self.chunks.next() else { - return None; - }; + let chunk = self.chunks.next()?; let value = decode_chunk(chunk); if value & (1 << 16) != 0 {