remove Service bounds on ServiceBuilder::service()
This commit is contained in:
parent
27acbe600b
commit
57a866ee09
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue