Skip to content

Commit 8c4518f

Browse files
committed
epoll: use more idiomatic way to consume iterator
1 parent 5774cef commit 8c4518f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/unix/linux_like/epoll.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ impl EpollInterestTable {
181181
.borrow_mut()
182182
.extract_if(range_for_id(id), |_, _| true)
183183
// Consume the iterator.
184-
.for_each(|_| ());
184+
.for_each(drop);
185185
epoll
186186
.ready_set
187187
.borrow_mut()
188188
.extract_if(range_for_id(id), |_| true)
189189
// Consume the iterator.
190-
.for_each(|_| ());
190+
.for_each(drop);
191191
}
192192
}
193193
}

0 commit comments

Comments
 (0)