Skip to content

Commit

Permalink
chore(web): Relax GrpcWebCall error bound (#1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Oct 12, 2024
1 parent e9a8c3c commit 0fcd63a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tonic-web/src/call.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::error::Error;
use std::fmt;
use std::pin::Pin;
use std::task::{ready, Context, Poll};

Expand Down Expand Up @@ -162,7 +162,7 @@ impl<B> GrpcWebCall<B>
where
B: Body,
B::Data: Buf,
B::Error: Error,
B::Error: fmt::Display,
{
// Poll body for data, decoding (e.g. via Base64 if necessary) and returning frames
// to the caller. If the caller is a client, it should look for trailers before
Expand Down Expand Up @@ -250,7 +250,7 @@ where
impl<B> Body for GrpcWebCall<B>
where
B: Body,
B::Error: Error,
B::Error: fmt::Display,
{
type Data = Bytes;
type Error = Status;
Expand Down Expand Up @@ -339,7 +339,7 @@ where
impl<B> Stream for GrpcWebCall<B>
where
B: Body,
B::Error: Error,
B::Error: fmt::Display,
{
type Item = Result<Frame<Bytes>, Status>;

Expand Down

0 comments on commit 0fcd63a

Please sign in to comment.