aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index c9debe5..38f4837 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -62,8 +62,10 @@ fn main() {
62 // handle history storage 62 // handle history storage
63 let eva_dirs = ProjectDirs::from("com", "NerdyPepper", "eva").unwrap(); 63 let eva_dirs = ProjectDirs::from("com", "NerdyPepper", "eva").unwrap();
64 let eva_data_dir = eva_dirs.data_dir(); 64 let eva_data_dir = eva_dirs.data_dir();
65 let eva_cache_dir = eva_dirs.cache_dir();
65 let mut history_path = PathBuf::from(eva_data_dir); 66 let mut history_path = PathBuf::from(eva_data_dir);
66 let mut previous_ans_path = PathBuf::from(eva_data_dir); 67 let mut previous_ans_path = PathBuf::from(eva_cache_dir);
68
67 match create_dir_all(eva_data_dir) { 69 match create_dir_all(eva_data_dir) {
68 Ok(_) => { 70 Ok(_) => {
69 history_path.push("history.txt"); 71 history_path.push("history.txt");