1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 21:51:06 +01:00

change Apply::new_fn to old args order

This commit is contained in:
Nikolay Kim 2019-02-03 10:52:44 -08:00
parent bd977373bc
commit 429ad453d3

View File

@ -43,10 +43,10 @@ where
S: Service,
{
/// Create new `Apply` combinator
pub fn new_fn<S1: IntoService<S>>(transform: F, service: S1) -> Self {
pub fn new_fn<S1: IntoService<S>>(service: S1, transform: F) -> Self {
Self {
transform: transform.into_transform(),
service: service.into_service(),
transform: transform.into_transform(),
}
}
}