summaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index e061b83..17ac707 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -31,12 +31,7 @@ async fn main() {
async fn create_app() -> Router {
logger::setup();
let _ = db::setup().await;
- let pool = unsafe {
- match db::get_client() {
- Some(client) => client,
- None => panic!("Connection not established!"),
- }
- };
+ let pool = unsafe { db::get_client() };
Router::new()
.route("/", get(hej))