Skip to content

Commit

Permalink
Remove unnecessary bounds on timeout service error (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdingram authored Nov 23, 2024
1 parent 3789c0c commit 4bd9549
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tower-http/src/timeout/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ impl<S> RequestBodyTimeout<S> {
impl<S, ReqBody> Service<Request<ReqBody>> for RequestBodyTimeout<S>
where
S: Service<Request<TimeoutBody<ReqBody>>>,
S::Error: Into<Box<dyn std::error::Error>>,
{
type Response = S::Response;
type Error = S::Error;
Expand Down Expand Up @@ -212,7 +211,6 @@ pub struct ResponseBodyTimeout<S> {
impl<S, ReqBody, ResBody> Service<Request<ReqBody>> for ResponseBodyTimeout<S>
where
S: Service<Request<ReqBody>, Response = Response<ResBody>>,
S::Error: Into<Box<dyn std::error::Error>>,
{
type Response = Response<TimeoutBody<ResBody>>;
type Error = S::Error;
Expand Down

0 comments on commit 4bd9549

Please sign in to comment.