Minor refactors based on cargo clippy

This commit is contained in:
Philip Kristoffersen
2022-08-15 15:32:12 +02:00
parent 07d2551c63
commit 6749a3db00
8 changed files with 20 additions and 18 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ pub(crate) fn get_egs_manifests(
manifest.manifest_location = compat_folder
.join("pfx")
.join("drive_c")
.join(&manifest.manifest_location[3..].replace("\\", "/"))
.join(&manifest.manifest_location[3..].replace('\\', "/"))
.to_path_buf()
.to_string_lossy()
.to_string();
@@ -35,7 +35,7 @@ pub(crate) fn get_egs_manifests(
manifest.install_location = compat_folder
.join("pfx")
.join("drive_c")
.join(&manifest.install_location[3..].replace("\\", "/"))
.join(&manifest.install_location[3..].replace('\\', "/"))
.to_path_buf()
.to_string_lossy()
.to_string();
+1 -1
View File
@@ -68,7 +68,7 @@ mod unix {
//We found all we need
return Some(EpicPaths {
launcher_path,
compat_folder_path: Some(dir.path().to_path_buf()),
compat_folder_path: Some(dir.path()),
manifest_folder_path,
});
}