remove Service bounds on ServiceBuilder::service()

This commit is contained in:
Sean McArthur 2019-04-18 12:09:08 -07:00
parent 27acbe600b
commit 57a866ee09
1 changed files with 1 additions and 2 deletions

View File

@ -291,10 +291,9 @@ impl<L> ServiceBuilder<L> {
}
/// Wrap the service `S` with the layers.
pub fn service<S, Request>(self, service: S) -> L::Service
pub fn service<S>(self, service: S) -> L::Service
where
L: Layer<S>,
L::Service: Service<Request>,
{
self.layer.layer(service)
}