From 841fc1355ecef4636ad9f5ad6d081f72eeb868ac Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 21 May 2025 22:43:52 -0400 Subject: Remove a bunch of clippy suppressions. Notably, one of them was hiding a real (if unreachable) bug, by converting a "the token you have presented is not valid" scenario into an internal server error. --- src/ui/assets.rs | 3 +-- src/ui/routes/login.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ui') diff --git a/src/ui/assets.rs b/src/ui/assets.rs index 142cdf9..642679b 100644 --- a/src/ui/assets.rs +++ b/src/ui/assets.rs @@ -54,10 +54,9 @@ pub enum Error { impl IntoResponse for Error { fn into_response(self) -> Response { - #[allow(clippy::match_wildcard_for_single_variants)] match self { Self::NotFound(_) => NotFound(self.to_string()).into_response(), - other => Internal::from(other).into_response(), + Self::Mime(_) => Internal::from(self).into_response(), } } } diff --git a/src/ui/routes/login.rs b/src/ui/routes/login.rs index 81a874c..39d45b9 100644 --- a/src/ui/routes/login.rs +++ b/src/ui/routes/login.rs @@ -4,7 +4,6 @@ pub mod get { ui::assets::{Asset, Assets}, }; - #[allow(clippy::unused_async)] pub async fn handler() -> Result { Assets::index() } -- cgit v1.2.3