From 6c7faf0e9dbc74aef5d3110313324bc7e1f997cf Mon Sep 17 00:00:00 2001 From: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com> Date: Fri, 27 Sep 2024 19:37:59 +0100 Subject: [PATCH] fix bounds on make `AsService` & `IntoService` --- tower/src/make/make_service.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tower/src/make/make_service.rs b/tower/src/make/make_service.rs index aa519d682..2ee3abaf1 100644 --- a/tower/src/make/make_service.rs +++ b/tower/src/make/make_service.rs @@ -189,13 +189,12 @@ where } } -impl Service for IntoService +impl Service for IntoService where - M: Service, - S: Service, + M: MakeService, { - type Response = M::Response; - type Error = M::Error; + type Response = M::Service; + type Error = M::MakeError; type Future = M::Future; #[inline] @@ -230,13 +229,12 @@ where } } -impl Service for AsService<'_, M, Request> +impl Service for AsService<'_, M, Request> where - M: Service, - S: Service, + M: MakeService, { - type Response = M::Response; - type Error = M::Error; + type Response = M::Service; + type Error = M::MakeError; type Future = M::Future; #[inline]