Remove a redundant pattern match

Identified by clippy's redundant_pattern_match lint.
This commit is contained in:
teor 2020-12-14 12:19:33 +10:00 committed by Deirdre Connolly
parent d725eeb4d6
commit d482900e7f
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ impl InventoryRegistry {
/// - rotates HashMaps based on interval events
/// - drains the inv_stream channel and registers all advertised inventory
pub fn poll_inventory(&mut self, cx: &mut Context<'_>) -> Result<(), BoxError> {
while let Poll::Ready(_) = Pin::new(&mut self.interval).poll_next(cx) {
while Pin::new(&mut self.interval).poll_next(cx).is_ready() {
self.rotate();
}