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:
parent
bd977373bc
commit
429ad453d3
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user