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 NextWhere for I fn next_where(&mut self, f: &F) -> Option where F: Filter { - while let Some(next) = self.next() { + for next in self { if f.filter(&next) { return Some(next); }