Remove unwraps (#316)

Remove all unwraps and clippy warnings
This commit is contained in:
Philip Kristoffersen
2023-01-07 13:48:26 +01:00
committed by GitHub
parent 59b67a11b7
commit f6188b130d
30 changed files with 706 additions and 553 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ impl From<GogShortcut> for ShortcutOwned {
let icon_file = format!("goggame-{}.ico", gogs.game_id);
let icon_path = Path::new(&gogs.game_folder).join(icon_file);
let icon = if icon_path.exists() {
icon_path.to_str().unwrap().to_string()
icon_path.to_string_lossy().to_string()
} else {
"".to_string()
};