[No-auto] lib/entry/util: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:28:40 +02:00 committed by Matthias Beyer
parent d605f923bb
commit d377a999cb

View file

@ -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);
}