(path: &PathBuf, entries: &[String])
| 1411 | } |
| 1412 | |
| 1413 | fn store_history(path: &PathBuf, entries: &[String]) { |
| 1414 | let payload = HistoryStore { |
| 1415 | entries: entries.to_vec(), |
| 1416 | }; |
| 1417 | if let Ok(json) = serde_json::to_string(&payload) { |
| 1418 | let _ = std::fs::write(path, json); |
| 1419 | } |
| 1420 | } |
| 1421 | |
| 1422 | fn store_frecency(path: &PathBuf, entries: &HashMap<String, FrecencyEntry>) { |
| 1423 | let payload = FrecencyStore { |