Skip to content

Commit 1027be9

Browse files
committed
feat: interrupt::Iter now allows accessing the inner iterator without consumption. (#470)
This is useful if these provide additional out-of-band information.
1 parent 6b2af57 commit 1027be9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git-repository/src/interrupt.rs

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ where
8282
pub fn into_inner(self) -> I {
8383
self.inner.inner
8484
}
85+
86+
/// Return the inner iterator as reference
87+
pub fn inner(&self) -> &I {
88+
&self.inner.inner
89+
}
8590
}
8691

8792
impl<I, EFN, E> Iterator for Iter<I, EFN>

0 commit comments

Comments
 (0)