From 3a4729d4655a429971f977e3d18dec792d6d2ecc Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 22 Aug 2022 15:39:11 +0200 Subject: Rename `Error` to `AppError` --- server/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src/main.rs') diff --git a/server/src/main.rs b/server/src/main.rs index 810e202..2f4a727 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1,3 +1,4 @@ +mod db; mod errors; mod logger; @@ -50,7 +51,7 @@ async fn create_app() -> Router { } // Example root which says hi -async fn hej() -> Result, errors::Error> { +async fn hej() -> Result, errors::AppError> { Ok(Json(Hej::new("hej verden".to_string()))) } -- cgit v1.2.3-18-g5258