From 305e9a3269fd4a7317847fffcf1b085d6f701fee Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Tue, 22 Sep 2026 14:45:19 +0200 Subject: [PATCH] minor: Allow compiling on rust stable (Never type not stabilized yet) --- src/http/redirect.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http/redirect.rs b/src/http/redirect.rs index 120f9c8..19cec37 100644 --- a/src/http/redirect.rs +++ b/src/http/redirect.rs @@ -4,6 +4,8 @@ use base64::{Engine as _, engine::general_purpose::URL_SAFE}; use http::request::Parts; use serde::Deserialize; +use std::convert::Infallible; + use crate::http::HttpState; /// Internal redirect to a different page. @@ -76,7 +78,7 @@ impl InternalRedirect { } impl FromRequestParts for InternalRedirect { - type Rejection = !; + type Rejection = Infallible; async fn from_request_parts( parts: &mut Parts,