Skip to content

Commit

Permalink
refactor: address lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornaz committed Mar 29, 2024
1 parent b17445b commit 46cea2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ where
{
type Item = Result<Entry<D>, Error>;
fn next(&mut self) -> Option<Self::Item> {
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) => {
Expand Down

0 comments on commit 46cea2c

Please sign in to comment.