diff --git a/src/common/time.rs b/src/common/time.rs index 2405cbcadb..2ec3bc3ddd 100644 --- a/src/common/time.rs +++ b/src/common/time.rs @@ -1,11 +1,9 @@ use std::{fmt, sync::Arc}; -#[cfg(feature = "server")] use std::{ pin::Pin, time::{Duration, Instant}, }; -#[cfg(feature = "server")] use crate::rt::Sleep; use crate::rt::Timer; @@ -56,7 +54,6 @@ impl Future for HyperTimeout where F: Future { } */ -#[cfg(feature = "server")] impl Time { pub(crate) fn sleep(&self, duration: Duration) -> Box { match *self {