summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:28:40 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:41 +0200
commitd377a999cb4e0b81685376bcf73f4270f7c7dd3e (patch)
tree97934b2e91f829017f34ada01da3813a3039bfd8
parentd605f923bb005869341ddba05ab9ab7db9997328 (diff)
[No-auto] lib/entry/util: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/entry/libimagentryutil/src/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/entry/libimagentryutil/src/iter.rs b/lib/entry/libimagentryutil/src/iter.rs
index 0be5ff2..d51e4c4 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);
}