1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-27 07:05:53 +02:00

revert IntoFuture change

This commit is contained in:
Nikolay Kim
2019-03-04 21:35:47 -08:00
parent 03f2046a42
commit e8a49801eb
20 changed files with 58 additions and 70 deletions

View File

@@ -31,7 +31,7 @@ pub trait Transform<S> {
type InitError;
/// The future response value.
type Future: IntoFuture<Item = Self::Transform, Error = Self::InitError>;
type Future: Future<Item = Self::Transform, Error = Self::InitError>;
/// Create and return a new service value asynchronously.
fn new_transform(&self, service: S) -> Self::Future;
@@ -147,7 +147,7 @@ where
A: NewService<C>,
T: Transform<A::Service, Error = A::Error, InitError = A::InitError>,
{
fut_a: <A::Future as IntoFuture>::Future,
fut_a: A::Future,
fut_t: Option<<T::Future as IntoFuture>::Future>,
t_cell: Rc<T>,
}