mirror of
https://github.com/tower-rs/tower.git
synced 2025-10-02 15:25:11 +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.
|
||||
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…
x
Reference in New Issue
Block a user