remove more unwrap

This commit is contained in:
micialware committed 2026-08-24 23:10:23 +03:00
1 parent 5a6747030b
commit b5b1eb768c
6 files changed
+38 -26

No files matched your search

+1 -1
View File
@@ -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();