From 83f51b28d7de68c99d5be7f1a2bb3ac4c752a42c Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 22 Feb 2019 17:12:26 -0800 Subject: [PATCH] allow to customize cfg parameter for FnNewService --- actix-service/src/fn_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,