From b3366bc1af79025b1a8d724e21a49f06ffc20be7 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 12 Mar 2019 13:55:31 -0700 Subject: [PATCH] service response is not important --- actix-server/src/service_config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-server/src/service_config.rs b/actix-server/src/service_config.rs index faa50de3..ed1713b1 100644 --- a/actix-server/src/service_config.rs +++ b/actix-server/src/service_config.rs @@ -173,7 +173,7 @@ impl ServiceRuntime { pub fn service(&mut self, name: &str, service: F) where F: IntoNewService, - T: NewService, Response = ()> + 'static, + T: NewService> + 'static, T::Future: 'static, T::Service: 'static, T::InitError: fmt::Debug, @@ -183,7 +183,7 @@ impl ServiceRuntime { self.services.insert( token.clone(), Box::new(ServiceFactory { - inner: service.into_new_service(), + inner: service.into_new_service().map(|_| ()), }), ); } else {