minor: Allow compiling on rust stable (Never type not stabilized yet)
This commit is contained in:
parent
a60434e662
commit
305e9a3269
1 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,8 @@ use base64::{Engine as _, engine::general_purpose::URL_SAFE};
|
||||||
use http::request::Parts;
|
use http::request::Parts;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
|
use std::convert::Infallible;
|
||||||
|
|
||||||
use crate::http::HttpState;
|
use crate::http::HttpState;
|
||||||
|
|
||||||
/// Internal redirect to a different page.
|
/// Internal redirect to a different page.
|
||||||
|
|
@ -76,7 +78,7 @@ impl InternalRedirect {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FromRequestParts<HttpState> for InternalRedirect {
|
impl FromRequestParts<HttpState> for InternalRedirect {
|
||||||
type Rejection = !;
|
type Rejection = Infallible;
|
||||||
|
|
||||||
async fn from_request_parts(
|
async fn from_request_parts(
|
||||||
parts: &mut Parts,
|
parts: &mut Parts,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue