Skip to content

Commit

Permalink
timeout - remove unnecessary bounds on service error
Browse files Browse the repository at this point in the history
  • Loading branch information
markdingram committed Nov 22, 2024
1 parent 3789c0c commit 7fe0a78
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 7fe0a78

Please sign in to comment.