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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user