From 6c73f993d07240dc24afc382172b3a9778b4d6f3 Mon Sep 17 00:00:00 2001 From: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com> Date: Mon, 1 Jul 2019 17:37:57 +0200 Subject: [PATCH] unwrap when failling to open .env in plume **this is a debug commit not expected to reach master, an actual fix will be needed** --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 136f6a63..4b5707f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,7 +73,7 @@ compile_i18n!(); /// Initializes a database pool. fn init_pool() -> Option { - dotenv::dotenv().ok(); + dotenv::dotenv().unwrap(); let manager = ConnectionManager::::new(CONFIG.database_url.as_str()); let pool = DbPool::builder()