Skip to content

Commit

Permalink
you live and you learn
Browse files Browse the repository at this point in the history
  • Loading branch information
conaticus committed Jun 29, 2023
1 parent ded79ba commit e66ef7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/filesystem/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn save_to_cache(state: &mut MutexGuard<AppState>) {

let mut file = fs::OpenOptions::new()
.write(true)
.truncate(true) // I have literally no clue why but without truncate, the JSON gets messed up and a trailing character error occurs when deserializing the file contents.
.truncate(true)
.open(CACHE_FILE_PATH)
.unwrap();

Expand Down

0 comments on commit e66ef7e

Please sign in to comment.