mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Implement simple clippy suggestions (#159)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user