Skip to content

Commit 7b92058

Browse files
committed
chore: address clippy warnings
1 parent aead1d8 commit 7b92058

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

batcher/aligned-batcher/src/types/batch_state.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,8 @@ impl BatchState {
264264
}
265265

266266
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-
}
267+
self.batch_queue
268+
.peek()
269+
.map(|(_, priority_entry)| priority_entry.clone())
271270
}
272271
}

0 commit comments

Comments
 (0)