1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 15:42:57 +01:00

do not use void for now

This commit is contained in:
Nikolay Kim 2019-03-02 13:49:21 -08:00
parent 668e4f9ac4
commit b5b3168b34

View File

@ -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<F, Req, Out>;
type InitError = Void;
type InitError = ();
type Future = FutureResult<Self::Service, Self::InitError>;
fn new_service(&self, _: &Cfg) -> Self::Future {