From 452c8d0d9edb9894c108b6d577806c7c9d0071dd Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 25 Sep 2024 01:27:05 -0400 Subject: Crank up the Clippy warnings. This'll catch style issues, mostly. --- src/login/routes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/login/routes.rs') 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(), } } } -- cgit v1.2.3