From e4832b4cf36ba0eaed298ee458498eddd7176590 Mon Sep 17 00:00:00 2001 From: FxQnLr Date: Sun, 11 Feb 2024 21:17:58 +0100 Subject: fix clippy --- src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 5b82534..56d6c52 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,10 +4,10 @@ use axum::Json; use axum::response::{IntoResponse, Response}; use serde_json::json; use tracing::error; -use crate::auth::AuthError; +use crate::auth::Error as AuthError; #[derive(Debug)] -pub enum WebolError { +pub enum Error { Generic, Auth(AuthError), DB(sqlx::Error), @@ -16,7 +16,7 @@ pub enum WebolError { Broadcast(io::Error), } -impl IntoResponse for WebolError { +impl IntoResponse for Error { fn into_response(self) -> Response { let (status, error_message) = match self { Self::Auth(err) => { @@ -45,4 +45,4 @@ impl IntoResponse for WebolError { })); (status, body).into_response() } -} \ No newline at end of file +} -- cgit v1.2.3