Skip to content

Commit

Permalink
feat: interrupt::Iter now allows accessing the inner iterator witho…
Browse files Browse the repository at this point in the history
…ut consumption. (#470)

This is useful if these provide additional out-of-band information.
  • Loading branch information
Byron committed Sep 19, 2022
1 parent 6b2af57 commit 1027be9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-repository/src/interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ where
pub fn into_inner(self) -> I {
self.inner.inner
}

/// Return the inner iterator as reference
pub fn inner(&self) -> &I {
&self.inner.inner
}
}

impl<I, EFN, E> Iterator for Iter<I, EFN>
Expand Down

0 comments on commit 1027be9

Please sign in to comment.