1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-23 17:35:13 +02:00

use FnMut instead of Fn

This commit is contained in:
Nikolay Kim
2019-01-16 15:00:23 -08:00
parent f94ef5248e
commit b6414d6197
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ where
impl<T, F, In, Out, Request> Apply<T, F, In, Out, Request>
where
T: Service<Request>,
F: Fn(In, &mut T) -> Out,
F: FnMut(In, &mut T) -> Out,
Out: IntoFuture,
Out::Error: From<T::Error>,
{
@@ -48,7 +48,7 @@ where
impl<T, F, In, Out, Request> Service<In> for Apply<T, F, In, Out, Request>
where
T: Service<Request>,
F: Fn(In, &mut T) -> Out,
F: FnMut(In, &mut T) -> Out,
Out: IntoFuture,
Out::Error: From<T::Error>,
{