diff --git a/actix-service/src/apply.rs b/actix-service/src/apply.rs index aa7a8cc1..2a821fe8 100644 --- a/actix-service/src/apply.rs +++ b/actix-service/src/apply.rs @@ -43,10 +43,10 @@ where S: Service, { /// Create new `Apply` combinator - pub fn new_fn>(transform: F, service: S1) -> Self { + pub fn new_fn>(service: S1, transform: F) -> Self { Self { - transform: transform.into_transform(), service: service.into_service(), + transform: transform.into_transform(), } } }