Skip to content

Commit

Permalink
refactor(rt): replace futures_util::Future with std::future::Future (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and 0xE282B0 committed Jan 12, 2024
1 parent 6e24c37 commit fff1754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/support/tokiort.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#![allow(dead_code)]
//! Various runtimes for hyper
use std::{
future::Future,
pin::Pin,
task::{Context, Poll},
time::{Duration, Instant},
};

use futures_util::Future;
use hyper::rt::{Sleep, Timer};
use pin_project_lite::pin_project;

Expand Down
2 changes: 1 addition & 1 deletion src/rt/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
//! Example using tokio timer:
//! ```rust
//! use std::{
//! future::Future,
//! pin::Pin,
//! task::{Context, Poll},
//! time::{Duration, Instant},
//! };
//!
//! use futures_util::Future;
//! use pin_project_lite::pin_project;
//! use hyper::rt::{Timer, Sleep};
//!
Expand Down

0 comments on commit fff1754

Please sign in to comment.