aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs
index b7d75f2..f1e5b2d 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -125,7 +125,7 @@ impl ResponseError for RuntimeError {
pub fn error_page_middleware<S, B>(
req: ServiceRequest,
srv: &S,
-) -> impl Future<Output = actix_web::Result<ServiceResponse>> + 'static
+) -> impl Future<Output = actix_web::Result<ServiceResponse>> + 'static + use<S, B>
where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = actix_web::Error>,
B: MessageBody + 'static,