Implement simple clippy suggestions (#159)

This commit is contained in:
Philip Kristoffersen
2022-05-27 13:19:10 +02:00
committed by GitHub
parent c57a7ec4a2
commit 835c7ead8d
12 changed files with 79 additions and 97 deletions
-2
View File
@@ -1,6 +1,4 @@
use super::{EpicGamesLauncherSettings, ManifestItem};
#[cfg(target_os = "windows")]
use std::env::{self};
use std::fs::{DirEntry, File};
use std::io::BufReader;
+1 -1
View File
@@ -94,7 +94,7 @@ fn launcher_shortcut(manifest: ManifestItem) -> ShortcutOwned {
.as_ref()
.map(|p| {
p.parent()
.unwrap_or(Path::new(""))
.unwrap_or_else(||Path::new(""))
.to_string_lossy()
.to_string()
})