Skip to content

Commit 69982a4

Browse files
committed
Clippy
1 parent dcf32b9 commit 69982a4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

beacon_node/lighthouse_network/src/config.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,8 @@ impl Config {
270270
let mut ctx = std::task::Context::from_waker(futures::task::noop_waker_ref());
271271

272272
// Ensure all addresses are added.
273-
loop {
274-
match watcher.poll_if_event(&mut ctx) {
275-
std::task::Poll::Ready(Ok(_)) => continue,
276-
_ => break,
277-
}
273+
while let std::task::Poll::Ready(Ok(_)) = watcher.poll_if_event(&mut ctx) {
274+
continue;
278275
}
279276

280277
watcher

0 commit comments

Comments
 (0)