diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-25 01:27:05 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-25 02:16:04 -0400 |
| commit | 452c8d0d9edb9894c108b6d577806c7c9d0071dd (patch) | |
| tree | 1857a7409fe9e5e8c724ff7a04112c57ed3de92c /src/channel | |
| parent | 697e90f291cec1bbd89965c2731f9481ec4507c4 (diff) | |
Crank up the Clippy warnings.
This'll catch style issues, mostly.
Diffstat (limited to 'src/channel')
| -rw-r--r-- | src/channel/routes.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<App> { .route("/api/channels/:channel", post(on_send)) } -async fn list(State(app): State<App>, _: Login) -> Result<Channels, InternalError> { +async fn list(State(app): State<App>, _: Login) -> Result<Channels, Internal> { 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(), } } } |
