Migrate to hashbrown structures

This commit is contained in:
2026-08-16 23:50:14 +03:00
parent dcf7352553
commit 3fcbd235cf
5 changed files with 7 additions and 15 deletions
+4 -2
View File
@@ -27,7 +27,7 @@ use chrono::NaiveDate;
use iced::keyboard::Event;
use iced::{Element, Task};
use reqwest::Error;
use std::collections::HashMap;
use hashbrown::HashMap;
use std::sync::{Arc, Mutex};
use std::time::Instant;
use rusqlite::Connection;
@@ -171,7 +171,9 @@ impl ScreenState {
if let UpdateData = message {
println!("Loading data");
let mut state = self.app_state.lock().unwrap();
state.connection = Connection::open_in_memory().unwrap();
if cfg!(windows){
state.connection = Connection::open_in_memory().unwrap();
}
let path = app_data_dir();
let db_file = path.join("data.db");
let temp_db_file = path.join("data.db.tmp");