mirror of
https://github.com/tower-rs/tower.git
synced 2025-10-02 07:20:52 +00:00
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.
|
/// 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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user