chore: replace ready! with std::task::ready! (#6804)

This commit is contained in:
Havish Maka
2024-08-29 22:02:56 +02:00
committed by GitHub
parent 479a56a010
commit 11f66f43a0
86 changed files with 92 additions and 123 deletions
+2 -4
View File
@@ -6,7 +6,6 @@
use crate::time::wheel::{self, Wheel};
use futures_core::ready;
use tokio::time::{sleep_until, Duration, Instant, Sleep};
use core::ops::{Index, IndexMut};
@@ -19,7 +18,7 @@ use std::fmt::Debug;
use std::future::Future;
use std::marker::PhantomData;
use std::pin::Pin;
use std::task::{self, Poll, Waker};
use std::task::{self, ready, Poll, Waker};
/// A queue of delayed elements.
///
@@ -74,9 +73,8 @@ use std::task::{self, Poll, Waker};
/// ```rust,no_run
/// use tokio_util::time::{DelayQueue, delay_queue};
///
/// use futures::ready;
/// use std::collections::HashMap;
/// use std::task::{Context, Poll};
/// use std::task::{ready, Context, Poll};
/// use std::time::Duration;
/// # type CacheKey = String;
/// # type Value = String;