summaryrefslogtreecommitdiffstats
path: root/tokio/src/time/throttle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/time/throttle.rs')
-rw-r--r--tokio/src/time/throttle.rs17
1 files changed, 6 insertions, 11 deletions
diff --git a/tokio/src/time/throttle.rs b/tokio/src/time/throttle.rs
index 07215cd1..f81f0fcf 100644
--- a/tokio/src/time/throttle.rs
+++ b/tokio/src/time/throttle.rs
@@ -1,16 +1,11 @@
//! Slow down a stream by enforcing a delay between items.
-use crate::time::{Delay, Instant};
-
-use futures_core::ready;
-use futures_core::Stream;
-use std::{
- future::Future,
- marker::Unpin,
- pin::Pin,
- task::{self, Poll},
- time::Duration,
-};
+use crate::time::{Delay, Duration, Instant};
+
+use std::future::Future;
+use std::marker::Unpin;
+use std::pin::Pin;
+use std::task::{self, Poll};
/// Slow down a stream by enforcing a delay between items.
#[derive(Debug)]