From b5b3168b34f2f61757401ca83d4766e13ce3721a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sat, 2 Mar 2019 13:49:21 -0800 Subject: [PATCH] do not use void for now --- actix-service/src/fn_service.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 630b5d34..5b1319f7 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -3,7 +3,6 @@ use std::marker::PhantomData; use futures::future::{ok, FutureResult}; use futures::{Async, IntoFuture, Poll}; -use crate::Void; use crate::{IntoConfigurableNewService, IntoNewService, IntoService, NewService, Service}; /// Create `NewService` for function that can act as Service @@ -125,7 +124,7 @@ where type Error = Out::Error; type Service = FnService; - type InitError = Void; + type InitError = (); type Future = FutureResult; fn new_service(&self, _: &Cfg) -> Self::Future {