diff --git a/src/iterator.rs b/src/iterator.rs index d9f198d..8f17592 100644 --- a/src/iterator.rs +++ b/src/iterator.rs @@ -28,9 +28,7 @@ where { type Item = Result, Error>; fn next(&mut self) -> Option { - let Some(inner) = &mut self.inner else { - return None; - }; + let inner = self.inner.as_mut()?; for entry in inner { match entry { RawEntry::Directive(mut d) => {