diff options
-rw-r--r-- | lib/entry/libimagentryutil/src/iter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/entry/libimagentryutil/src/iter.rs b/lib/entry/libimagentryutil/src/iter.rs index 0be5ff2b..d51e4c43 100644 --- a/lib/entry/libimagentryutil/src/iter.rs +++ b/lib/entry/libimagentryutil/src/iter.rs @@ -34,7 +34,7 @@ impl<T, I> NextWhere<T> for I fn next_where<F>(&mut self, f: &F) -> Option<Self::Item> where F: Filter<T> { - while let Some(next) = self.next() { + for next in self { if f.filter(&next) { return Some(next); } |