From e26d87f4fa18999c6bcfbcf32cfa85adab11acdd Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sat, 26 Jul 2025 19:24:38 +0200 Subject: feat(auth): create user call --- crates/auth/src/error.rs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 crates/auth/src/error.rs (limited to 'crates/auth/src/error.rs') diff --git a/crates/auth/src/error.rs b/crates/auth/src/error.rs deleted file mode 100644 index 730f99a..0000000 --- a/crates/auth/src/error.rs +++ /dev/null @@ -1,26 +0,0 @@ -use axum::{ - http::StatusCode, - response::{IntoResponse, Response}, -}; - -#[derive(Debug)] -pub struct AppError(anyhow::Error); - -impl IntoResponse for AppError { - fn into_response(self) -> Response { - ( - StatusCode::INTERNAL_SERVER_ERROR, - format!("Something went wrong: {}", self.0), - ) - .into_response() - } -} - -impl From for AppError -where - E: Into, -{ - fn from(err: E) -> Self { - Self(err.into()) - } -} -- cgit v1.2.3