Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions tower/src/make/make_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,12 @@ where
}
}

impl<M, S, Target, Request> Service<Target> for IntoService<M, Request>
impl<M, Target, Request> Service<Target> for IntoService<M, Request>
where
M: Service<Target, Response = S>,
S: Service<Request>,
M: MakeService<Target, Request>,
{
type Response = M::Response;
type Error = M::Error;
type Response = M::Service;
type Error = M::MakeError;
type Future = M::Future;

#[inline]
Expand Down Expand Up @@ -230,13 +229,12 @@ where
}
}

impl<M, S, Target, Request> Service<Target> for AsService<'_, M, Request>
impl<M, Target, Request> Service<Target> for AsService<'_, M, Request>
where
M: Service<Target, Response = S>,
S: Service<Request>,
M: MakeService<Target, Request>,
{
type Response = M::Response;
type Error = M::Error;
type Response = M::Service;
type Error = M::MakeError;
type Future = M::Future;

#[inline]
Expand Down