diff options
Diffstat (limited to 'src/repo/login/extract.rs')
| -rw-r--r-- | src/repo/login/extract.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/repo/login/extract.rs b/src/repo/login/extract.rs index e808f4b..92eb516 100644 --- a/src/repo/login/extract.rs +++ b/src/repo/login/extract.rs @@ -8,13 +8,13 @@ use super::Login; use crate::{ app::App, clock::RequestedAt, - error::InternalError, + error::Internal, login::{app::ValidateError, extract::IdentityToken}, }; #[async_trait::async_trait] impl FromRequestParts<App> for Login { - type Rejection = LoginError<InternalError>; + type Rejection = LoginError<Internal>; async fn from_request_parts(parts: &mut Parts, state: &App) -> Result<Self, Self::Rejection> { // After Rust 1.82 (and #[feature(min_exhaustive_patterns)] lands on @@ -52,9 +52,9 @@ where } } -impl<E> From<E> for LoginError<InternalError> +impl<E> From<E> for LoginError<Internal> where - E: Into<InternalError>, + E: Into<Internal>, { fn from(err: E) -> Self { Self::Failure(err.into()) |
