1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-20 06:25:37 +02:00

change generics order for Transform trait

This commit is contained in:
Nikolay Kim
2019-03-05 09:49:08 -08:00
parent aa2967c653
commit 1153715149
9 changed files with 37 additions and 40 deletions

View File

@@ -24,7 +24,7 @@ where
}
}
impl<F, S, R, In, Out, Err> Transform<In, S> for FnTransform<F, S, R, In, Out, Err>
impl<F, S, R, In, Out, Err> Transform<S, In> for FnTransform<F, S, R, In, Out, Err>
where
S: Service<R>,
F: FnMut(In, &mut S) -> Out + Clone,
@@ -42,7 +42,7 @@ where
}
}
impl<F, S, R, In, Out, Err> IntoTransform<FnTransform<F, S, R, In, Out, Err>, In, S> for F
impl<F, S, R, In, Out, Err> IntoTransform<FnTransform<F, S, R, In, Out, Err>, S, In> for F
where
S: Service<R>,
F: FnMut(In, &mut S) -> Out + Clone,