remove more unwrap
This commit is contained in:
1 parent
5a6747030b
commit
b5b1eb768c
6 files changed
+38
-26
No files matched your search
@@ -4,7 +4,7 @@ use crate::fs::*;
|
||||
pub fn create_db() {
|
||||
let db_file = db_path();
|
||||
if !db_file.exists() {
|
||||
std::fs::File::create(&db_file).unwrap();
|
||||
std::fs::File::create(&db_file).expect("Database file creation failed");
|
||||
let connection = Connection::open(&db_file).unwrap();
|
||||
connection.execute("PRAGMA foreign_keys = ON;", []).unwrap();
|
||||
|
||||
|
||||
Reference in new issue
Block a user