1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-22 16:45:05 +02:00

optimize service combinators memory layout

This commit is contained in:
Nikolay Kim
2019-12-05 12:37:26 +06:00
parent c6eb318536
commit 6f41b80cb4
24 changed files with 366 additions and 399 deletions

View File

@@ -60,16 +60,15 @@ where
}
}
pin_project! {
pub struct MapInitErrFuture<A, F, E>
where
A: ServiceFactory,
F: Fn(A::InitError) -> E,
{
f: F,
#[pin]
fut: A::Future,
}
#[pin_project::pin_project]
pub struct MapInitErrFuture<A, F, E>
where
A: ServiceFactory,
F: Fn(A::InitError) -> E,
{
f: F,
#[pin]
fut: A::Future,
}
impl<A, F, E> MapInitErrFuture<A, F, E>