Migrate to hashbrown structures
This commit is contained in:
+4
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user