From d377a999cb4e0b81685376bcf73f4270f7c7dd3e Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Aug 2019 10:28:40 +0200 Subject: [PATCH] [No-auto] lib/entry/util: Fix Clippy warnings Signed-off-by: flip1995 Signed-off-by: Matthias Beyer --- lib/entry/libimagentryutil/src/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }