1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

update service factory config

This commit is contained in:
Nikolay Kim
2019-12-02 21:37:13 +06:00
parent f4c01384ec
commit 068f047dd5
17 changed files with 47 additions and 47 deletions

View File

@@ -56,8 +56,8 @@ where
type Service = BoxedHttpService<T::Request>;
type Future = LocalBoxFuture<'static, Result<Self::Service, ()>>;
fn new_service(&self, _: &()) -> Self::Future {
let fut = self.0.new_service(&());
fn new_service(&self, _: ()) -> Self::Future {
let fut = self.0.new_service(());
async move {
fut.await.map_err(|_| ()).map(|service| {