mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 15:42:57 +01:00
depend on repo
This commit is contained in:
parent
429ad453d3
commit
5b8446105f
@ -89,9 +89,9 @@ where
|
||||
/// `ApplyNewService` new service combinator
|
||||
pub struct ApplyNewService<T, S>
|
||||
where
|
||||
T::Error: From<S::Error>,
|
||||
// T::InitError: From<S::InitError>,
|
||||
T: NewTransform<S::Service, InitError = S::InitError>,
|
||||
T::Error: From<S::Error>,
|
||||
S: NewService,
|
||||
{
|
||||
transform: T,
|
||||
@ -116,9 +116,9 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<F, S, Req, Out> ApplyNewService<FnNewTransform<F, S::Service, Req, Out, S::InitError>, S>
|
||||
impl<F, S, In, Out> ApplyNewService<FnNewTransform<F, S::Service, In, Out, S::InitError>, S>
|
||||
where
|
||||
F: FnMut(Req, &mut S::Service) -> Out + Clone,
|
||||
F: FnMut(In, &mut S::Service) -> Out + Clone,
|
||||
Out: IntoFuture,
|
||||
Out::Error: From<S::Error>,
|
||||
S: NewService,
|
||||
|
@ -12,10 +12,6 @@ pub struct Blank<R, E> {
|
||||
}
|
||||
|
||||
impl<R, E> Blank<R, E> {
|
||||
//pub fn new() -> Blank<R, E> {
|
||||
// Blank { _t: PhantomData }
|
||||
//}
|
||||
|
||||
pub fn err<E1>(self) -> Blank<R, E1> {
|
||||
Blank { _t: PhantomData }
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
#actix-service = "0.2.0"
|
||||
actix-service = { path="../actix-service" }
|
||||
actix-service = { git = "https://github.com/actix/actix-net.git" }
|
||||
actix-codec = "0.1.0"
|
||||
bytes = "0.4"
|
||||
futures = "0.1"
|
||||
|
Loading…
Reference in New Issue
Block a user