From af720051594d1e116a5c1c701129e666e709a1c0 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 27 Nov 2019 20:59:36 +0600 Subject: [PATCH] move BoxFuture to boxed mod --- actix-service/src/boxed.rs | 6 +++++- actix-service/src/lib.rs | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/actix-service/src/boxed.rs b/actix-service/src/boxed.rs index 783d54c6..13c60a73 100644 --- a/actix-service/src/boxed.rs +++ b/actix-service/src/boxed.rs @@ -1,8 +1,12 @@ +use std::future::Future; +use std::pin::Pin; use std::task::{Context, Poll}; use futures::future::FutureExt; -use crate::{BoxFuture, Service, ServiceFactory}; +use crate::{Service, ServiceFactory}; + +pub type BoxFuture = Pin>>>; pub type BoxService = Box>>; diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs index 790f4554..84410534 100644 --- a/actix-service/src/lib.rs +++ b/actix-service/src/lib.rs @@ -1,6 +1,5 @@ use std::cell::RefCell; use std::future::Future; -use std::pin::Pin; use std::rc::Rc; use std::sync::Arc; use std::task::{self, Context, Poll}; @@ -26,8 +25,6 @@ pub use self::map_config::{map_config, unit_config, MappedConfig}; pub use self::pipeline::{pipeline, pipeline_factory, Pipeline, PipelineFactory}; pub use self::transform::{apply, Transform}; -pub type BoxFuture = Pin>>>; - /// An asynchronous function from `Request` to a `Response`. pub trait Service { /// Requests handled by the service.