From 5caa34f8479d0c3f156a6aacc856beeb19cb8402 Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 12 Oct 2023 02:42:01 +0900 Subject: [PATCH] refactor(ext): replace futures_util::Future with std::future::Future --- 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}; //!