[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:
parent
d605f923bb
commit
d377a999cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue