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/repo/login/extract.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/repo/login') 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 for Login { - type Rejection = LoginError; + type Rejection = LoginError; async fn from_request_parts(parts: &mut Parts, state: &App) -> Result { // After Rust 1.82 (and #[feature(min_exhaustive_patterns)] lands on @@ -52,9 +52,9 @@ where } } -impl From for LoginError +impl From for LoginError where - E: Into, + E: Into, { fn from(err: E) -> Self { Self::Failure(err.into()) -- cgit v1.2.3