(path: &PathBuf, entries: &HashMap<String, FrecencyEntry>)
| 1420 | } |
| 1421 | |
| 1422 | fn store_frecency(path: &PathBuf, entries: &HashMap<String, FrecencyEntry>) { |
| 1423 | let payload = FrecencyStore { |
| 1424 | entries: entries.clone(), |
| 1425 | }; |
| 1426 | if let Ok(json) = serde_json::to_string(&payload) { |
| 1427 | let _ = std::fs::write(path, json); |
| 1428 | } |
| 1429 | } |
| 1430 | |
| 1431 | fn store_stash(path: &PathBuf, entries: &[PromptStashEntry]) { |
| 1432 | let payload = StashStore { |