We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ExactSizeIterator
1 parent f520a51 commit ea2e5bbCopy full SHA for ea2e5bb
gix-pathspec/src/search/mod.rs
@@ -39,7 +39,7 @@ impl Match<'_> {
39
/// Access
40
impl Search {
41
/// Return an iterator over the patterns that participate in the search.
42
- pub fn patterns(&self) -> impl Iterator<Item = &Pattern> + '_ {
+ pub fn patterns(&self) -> impl ExactSizeIterator<Item = &Pattern> + '_ {
43
self.patterns.iter().map(|m| &m.value.pattern)
44
}
45
0 commit comments