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 {