diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-08-22 15:39:11 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-08-22 15:39:11 +0200 |
commit | 3a4729d4655a429971f977e3d18dec792d6d2ecc (patch) | |
tree | baf2e33b0725e6f366e8171f4067ad8e948139e1 /server/src/main.rs | |
parent | 5c1b0df40e344fbb841cc82ff324c668dbd59609 (diff) |
Rename `Error` to `AppError`
Diffstat (limited to 'server/src/main.rs')
-rw-r--r-- | server/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<Json<Hej>, errors::Error> { +async fn hej() -> Result<Json<Hej>, errors::AppError> { Ok(Json(Hej::new("hej verden".to_string()))) } |