Fix compile issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
asonix 2022-11-21 11:28:25 -06:00
parent 8afc16786d
commit 5043892981

View file

@ -27,9 +27,9 @@ impl Drop for LogOnDrop {
} }
} }
impl<S> Transform<S, ServiceRequest> for Timings impl<S, B> Transform<S, ServiceRequest> for Timings
where where
S: Service<ServiceRequest, Response = ServiceResponse, Error = actix_web::Error>, S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = actix_web::Error>,
S::Future: 'static, S::Future: 'static,
{ {
type Response = S::Response; type Response = S::Response;
@ -43,9 +43,9 @@ where
} }
} }
impl<S> Service<ServiceRequest> for TimingsMiddleware<S> impl<S, B> Service<ServiceRequest> for TimingsMiddleware<S>
where where
S: Service<ServiceRequest, Response = ServiceResponse, Error = actix_web::Error>, S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = actix_web::Error>,
S::Future: 'static, S::Future: 'static,
{ {
type Response = S::Response; type Response = S::Response;