Clippy fixes (#309)

* Automatic clippy fixes

* Manual clippy corrections
This commit is contained in:
Philip Kristoffersen
2023-01-04 20:28:43 +01:00
committed by GitHub
parent f1591b7818
commit 4ed9490c57
21 changed files with 42 additions and 46 deletions
+1 -1
View File
@@ -68,6 +68,6 @@ fn get_search_map() -> SearchMap {
fn save_search_map(search_map: &SearchMap) {
let string = serde_json::to_string(search_map).unwrap();
let path = get_cache_file();
let mut file = File::create(&path).unwrap();
let mut file = File::create(path).unwrap();
file.write_all(string.as_bytes()).unwrap();
}