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

View File

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