diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-25 01:27:05 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-25 02:16:04 -0400 |
| commit | 452c8d0d9edb9894c108b6d577806c7c9d0071dd (patch) | |
| tree | 1857a7409fe9e5e8c724ff7a04112c57ed3de92c /src/login/routes.rs | |
| parent | 697e90f291cec1bbd89965c2731f9481ec4507c4 (diff) | |
Crank up the Clippy warnings.
This'll catch style issues, mostly.
Diffstat (limited to 'src/login/routes.rs')
| -rw-r--r-- | src/login/routes.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/routes.rs b/src/login/routes.rs index 06e5853..31a68d0 100644 --- a/src/login/routes.rs +++ b/src/login/routes.rs @@ -6,7 +6,7 @@ use axum::{ Router, }; -use crate::{app::App, clock::RequestedAt, error::InternalError, repo::login::Login}; +use crate::{app::App, clock::RequestedAt, error::Internal, repo::login::Login}; use super::{app, extract::IdentityToken}; @@ -66,7 +66,7 @@ impl IntoResponse for LoginError { app::LoginError::Rejected => { (StatusCode::UNAUTHORIZED, "invalid name or password").into_response() } - other => InternalError::from(other).into_response(), + other => Internal::from(other).into_response(), } } } @@ -99,7 +99,7 @@ impl IntoResponse for LogoutError { error @ app::ValidateError::InvalidToken => { (StatusCode::UNAUTHORIZED, error.to_string()).into_response() } - other => InternalError::from(other).into_response(), + other => Internal::from(other).into_response(), } } } |
