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]