From 6b612122d48577d8b5fb1c0d84e7a73e69a7f813 Mon Sep 17 00:00:00 2001 From: Blas Rodriguez Irizar Date: Wed, 26 Aug 2020 09:46:24 +0200 Subject: [PATCH] update Stream::poll to DelayQueue::poll_expired --- tokio-test/src/lib.rs | 2 +- tokio/src/time/delay_queue.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs index 35f2a9b02..62aa2f7c5 100644 --- a/tokio-test/src/lib.rs +++ b/tokio-test/src/lib.rs @@ -5,7 +5,7 @@ rust_2018_idioms, unreachable_pub )] -#![deny(intra_doc_link_resolution_failure)] +#![deny(broken_intra_doc_links)] #![doc(test( no_crate_inject, attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) diff --git a/tokio/src/time/delay_queue.rs b/tokio/src/time/delay_queue.rs index 7b20c1aee..b02153b9e 100644 --- a/tokio/src/time/delay_queue.rs +++ b/tokio/src/time/delay_queue.rs @@ -33,7 +33,7 @@ use std::task::{self, Poll}; /// /// # `Stream` implementation /// -/// Items are retrieved from the queue via [`Stream::poll_expired`]. If no delays have +/// Items are retrieved from the queue via [`DelayQueue::poll_expired`]. If no delays have /// expired, no items are returned. In this case, `NotReady` is returned and the /// current task is registered to be notified once the next item's delay has /// expired.