Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.

Commit 2cc01d0

Browse files
committed
chore: lesser constraints on inner error and future
1 parent 6a2412e commit 2cc01d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ pub struct CrossOriginProtectionMiddleware<S> {
9090
impl<S, ReqBody, ResBody> Service<Request<ReqBody>> for CrossOriginProtectionMiddleware<S>
9191
where
9292
S: Service<Request<ReqBody>, Response = Response<ResBody>> + Clone + Send + 'static,
93-
S::Error: Into<BoxError> + Send + 'static,
94-
S::Future: Future<Output = Result<Response<ResBody>, S::Error>> + Send + 'static,
93+
S::Error: Into<BoxError> + Send,
94+
S::Future: Future<Output = Result<Response<ResBody>, S::Error>> + Send,
9595
ReqBody: Send + 'static,
9696
ResBody: Send + 'static,
9797
{

0 commit comments

Comments
 (0)