From 7234398fb43241b4c8d43b1beae06f7950fc3417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Fri, 22 Mar 2024 10:03:55 +0100 Subject: [PATCH] Less qualification --- rust/agama-server/src/agama-web-server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/agama-server/src/agama-web-server.rs b/rust/agama-server/src/agama-web-server.rs index 16fd1aa9e7..ef4ff7dda1 100644 --- a/rust/agama-server/src/agama-web-server.rs +++ b/rust/agama-server/src/agama-web-server.rs @@ -4,6 +4,7 @@ use agama_server::{ web::{self, run_monitor}, }; use axum::{ + extract::Request as AxumRequest, http::{Request, Response}, Router, }; @@ -153,7 +154,7 @@ fn redirect_error() -> Response { /// instead of the redirection fn https_redirect() -> Router { // see https://docs.rs/axum/latest/axum/routing/struct.Router.html#example - let redirect_service = tower::service_fn(|req: axum::extract::Request| async move { + let redirect_service = tower::service_fn(|req: AxumRequest| async move { if let Some(host) = req.headers().get("host").and_then(|h| h.to_str().ok()) { Ok(redirect_https(host, req.uri())) } else {