From 8aaede36456170c7ed8c1cbc03c085525b5ec63e Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 12 Oct 2023 04:07:49 +0900 Subject: [PATCH] refactor(rt): replace futures_util::Future with std::future::Future (#3341) --- benches/support/tokiort.rs | 2 +- src/rt/timer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/support/tokiort.rs b/benches/support/tokiort.rs index 9a16e0ebad..18d1d82306 100644 --- a/benches/support/tokiort.rs +++ b/benches/support/tokiort.rs @@ -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; diff --git a/src/rt/timer.rs b/src/rt/timer.rs index 6ecb964373..1e15694726 100644 --- a/src/rt/timer.rs +++ b/src/rt/timer.rs @@ -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}; //!