minor: Allow compiling on rust stable (Never type not stabilized yet)

This commit is contained in:
selfhoster selfhoster 2026-09-22 14:45:19 +02:00
commit 305e9a3269

View file

@ -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<HttpState> for InternalRedirect {
type Rejection = !;
type Rejection = Infallible;
async fn from_request_parts(
parts: &mut Parts,