From cb1ea341c3c0995fe709405865d1722cefbb1439 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 28 Aug 2018 20:32:01 -0700 Subject: [PATCH] make new public --- src/service/fn_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/fn_service.rs b/src/service/fn_service.rs index 28a7df8ea..6eee6c9be 100644 --- a/src/service/fn_service.rs +++ b/src/service/fn_service.rs @@ -85,7 +85,7 @@ where F: Fn(Req) -> Fut + Clone, Fut: IntoFuture, { - fn new(f: F) -> Self { + pub fn new(f: F) -> Self { FnNewService { f, req: marker::PhantomData,