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/events/routes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/events/routes.rs') diff --git a/src/events/routes.rs b/src/events/routes.rs index 5181370..d901f9b 100644 --- a/src/events/routes.rs +++ b/src/events/routes.rs @@ -20,7 +20,7 @@ use super::{extract::LastEventId, repo::broadcast}; use crate::{ app::App, clock::RequestedAt, - error::InternalError, + error::Internal, events::app::EventsError, repo::{channel, login::Login}, }; @@ -121,7 +121,7 @@ impl IntoResponse for ErrorResponse { not_found @ EventsError::ChannelNotFound(_) => { (StatusCode::NOT_FOUND, not_found.to_string()).into_response() } - other => InternalError::from(other).into_response(), + other => Internal::from(other).into_response(), } } } -- cgit v1.2.3