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
@@ -40,7 +40,7 @@ impl From<GogShortcut> for ShortcutOwned {
fn from(gogs: GogShortcut) -> Self {
let exe = Path::new(&gogs.game_folder).join(gogs.path);
let icon_file = format!("goggame-{}.ico", gogs.game_id);
let icon_path = Path::new(&gogs.game_folder).join(&icon_file);
let icon_path = Path::new(&gogs.game_folder).join(icon_file);
let icon = if icon_path.exists() {
icon_path.to_str().unwrap().to_string()
} else {