aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2025-03-07 02:21:16 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2025-03-07 02:21:16 +0000
commit1aa49ab2f008099a3de380a7e146a97dedb9873d (patch)
treeeefe8d8261ffa92ff08e0b3d6fc5f9649d502fa9 /src/errors.rs
parentAdd CHANGELOG entry for healthcheck route (diff)
downloadminiserve-1aa49ab2f008099a3de380a7e146a97dedb9873d.tar.gz
miniserve-1aa49ab2f008099a3de380a7e146a97dedb9873d.zip
Upgrade to Rust 2024 edition
Diffstat (limited to '')
-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,