Skip to content

Commit 5c9fa88

Browse files
authored
chore(web): Remove unnecessary bound from GrpcWebClientService (#1995)
1 parent 6a75978 commit 5c9fa88

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tonic-web/src/client.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
use bytes::Bytes;
21
use http::header::CONTENT_TYPE;
32
use http::{Request, Response, Version};
4-
use http_body::Body;
53
use pin_project::pin_project;
6-
use std::error::Error;
74
use std::future::Future;
85
use std::pin::Pin;
96
use std::task::{ready, Context, Poll};
@@ -53,9 +50,6 @@ impl<S> GrpcWebClientService<S> {
5350
impl<S, B1, B2> Service<Request<B1>> for GrpcWebClientService<S>
5451
where
5552
S: Service<Request<GrpcWebCall<B1>>, Response = Response<B2>>,
56-
B1: Body,
57-
B2: Body<Data = Bytes>,
58-
B2::Error: Error,
5953
{
6054
type Response = Response<GrpcWebCall<B2>>;
6155
type Error = S::Error;
@@ -94,7 +88,6 @@ pub struct ResponseFuture<F> {
9488

9589
impl<F, B, E> Future for ResponseFuture<F>
9690
where
97-
B: Body<Data = Bytes>,
9891
F: Future<Output = Result<Response<B>, E>>,
9992
{
10093
type Output = Result<Response<GrpcWebCall<B>>, E>;

0 commit comments

Comments
 (0)