From e39c8dae8c0da740d32355651cf7dc906b351f30 Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Mon, 4 Jul 2022 16:59:38 +0200 Subject: [PATCH] fix(clippy): fix clippy on nightly --- core/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/main.rs b/core/src/main.rs index 6bbbe7c..399b253 100644 --- a/core/src/main.rs +++ b/core/src/main.rs @@ -42,11 +42,9 @@ async fn main() { // if database file exists else { // open database connection - let db = Database::open(DATABASE_FILE) + Database::open(DATABASE_FILE) .await - .expect("open database file"); - - db + .expect("open database file") }; // change the type from Vec to Vec so that the http server can correctly detect CORS hosts