fix(clippy): fix clippy on nightly

This commit is contained in:
MedzikUser 2022-07-04 16:59:38 +02:00
parent 32198c69b0
commit e39c8dae8c
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 2 additions and 4 deletions

View File

@ -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<String> to Vec<HeaderValue> so that the http server can correctly detect CORS hosts