mirror of
https://github.com/fafhrd91/actix-net
synced 2025-08-18 04:35:32 +02:00
update utils; add NewTransform::map_init_err
This commit is contained in:
@@ -3,7 +3,7 @@ use std::marker::PhantomData;
|
||||
use futures::future::{ok, FutureResult};
|
||||
use futures::{Async, IntoFuture, Poll};
|
||||
|
||||
use crate::Never;
|
||||
use crate::Void;
|
||||
use crate::{IntoConfigurableNewService, IntoNewService, IntoService, NewService, Service};
|
||||
|
||||
/// Create `NewService` for function that can act as Service
|
||||
@@ -125,7 +125,7 @@ where
|
||||
type Error = Out::Error;
|
||||
type Service = FnService<F, Req, Out>;
|
||||
|
||||
type InitError = Never;
|
||||
type InitError = Void;
|
||||
type Future = FutureResult<Self::Service, Self::InitError>;
|
||||
|
||||
fn new_service(&self, _: &Cfg) -> Self::Future {
|
||||
|
Reference in New Issue
Block a user