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/channel/routes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/channel') diff --git a/src/channel/routes.rs b/src/channel/routes.rs index bb6cde6..f524e62 100644 --- a/src/channel/routes.rs +++ b/src/channel/routes.rs @@ -10,7 +10,7 @@ use super::app; use crate::{ app::App, clock::RequestedAt, - error::InternalError, + error::Internal, events::app::EventsError, repo::{ channel::{self, Channel}, @@ -28,7 +28,7 @@ pub fn router() -> Router { .route("/api/channels/:channel", post(on_send)) } -async fn list(State(app): State, _: Login) -> Result { +async fn list(State(app): State, _: Login) -> Result { let channels = app.channels().all().await?; let response = Channels(channels); @@ -73,7 +73,7 @@ impl IntoResponse for CreateError { duplicate @ app::CreateError::DuplicateName(_) => { (StatusCode::BAD_REQUEST, duplicate.to_string()).into_response() } - other => InternalError::from(other).into_response(), + other => Internal::from(other).into_response(), } } } @@ -109,7 +109,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