We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aead1d8 commit 7b92058Copy full SHA for 7b92058
1 file changed
batcher/aligned-batcher/src/types/batch_state.rs
@@ -264,9 +264,8 @@ impl BatchState {
264
}
265
266
pub(crate) fn lowest_entry_priority(&self) -> Option<BatchQueueEntryPriority> {
267
- match self.batch_queue.peek() {
268
- Some((_, priority_entry)) => Some(priority_entry.clone()),
269
- None => None,
270
- }
+ self.batch_queue
+ .peek()
+ .map(|(_, priority_entry)| priority_entry.clone())
271
272
0 commit comments