Skip to content

Commit

Permalink
fix(ffi): fix C API compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgrd committed Sep 4, 2022
1 parent 2b5721a commit bccd03c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/common/time.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -56,7 +54,6 @@ impl<F> Future for HyperTimeout<F> where F: Future {
}
*/

#[cfg(feature = "server")]
impl Time {
pub(crate) fn sleep(&self, duration: Duration) -> Box<dyn Sleep + Unpin> {
match *self {
Expand Down

0 comments on commit bccd03c

Please sign in to comment.