From db8b3636a17e548203ab3c6192004cb799e43b23 Mon Sep 17 00:00:00 2001 From: Christian Jaeger Date: Thu, 27 Jun 2024 07:08:21 +0200 Subject: [PATCH] sq warning --- src/web/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/error.rs b/src/web/error.rs index 595d3363c..75bb51407 100644 --- a/src/web/error.rs +++ b/src/web/error.rs @@ -119,7 +119,7 @@ struct ErrorInfo { } fn redirect_with_policy(target: String, cache_policy: CachePolicy) -> AxumResponse { - match super::axum_cached_redirect(&encode_url_path(&target), cache_policy) { + match super::axum_cached_redirect(encode_url_path(&target), cache_policy) { Ok(response) => response.into_response(), Err(err) => AxumNope::InternalError(err).into_response(), }