mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
refactor(net): use VecDeque::pop_front_if from Rust 1.93 (#22260)
This commit is contained in:
@@ -245,8 +245,7 @@ where
|
||||
}
|
||||
|
||||
// Buffer any empty headers
|
||||
while this.pending_headers.front().is_some_and(|h| h.is_empty()) {
|
||||
let header = this.pending_headers.pop_front().unwrap();
|
||||
while let Some(header) = this.pending_headers.pop_front_if(|h| h.is_empty()) {
|
||||
this.buffer.push(BlockResponse::Empty(header));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user