diff --git a/tonic-web/src/layer.rs b/tonic-web/src/layer.rs index 3383554e1..ac171af8c 100644 --- a/tonic-web/src/layer.rs +++ b/tonic-web/src/layer.rs @@ -1,7 +1,6 @@ -use super::{BoxBody, GrpcWebService}; +use super::GrpcWebService; use tower_layer::Layer; -use tower_service::Service; /// Layer implementing the grpc-web protocol. #[derive(Debug, Default, Clone)] @@ -16,10 +15,7 @@ impl GrpcWebLayer { } } -impl Layer for GrpcWebLayer -where - S: Service, Response = http::Response>, -{ +impl Layer for GrpcWebLayer { type Service = GrpcWebService; fn layer(&self, inner: S) -> Self::Service {