diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index f8bd71b2..8e713bc2 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -6,7 +6,7 @@ use futures::{Async, IntoFuture, Poll}; use super::{IntoConfigurableNewService, IntoNewService, IntoService, NewService, Service}; /// Create `NewService` for function that can act as Service -pub fn fn_service(f: F) -> FnNewService +pub fn fn_service(f: F) -> FnNewService where F: FnMut(Req) -> Out + Clone, Out: IntoFuture,