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
+6 -6
View File
@@ -71,18 +71,18 @@ fn get_manifest_item(dir_entry: DirEntry, _path: Option<PathBuf>) -> Option<Mani
item.manifest_location = compat_folder
.join("pfx")
.join("dosdevices")
.join(&item.manifest_location[0..2].to_lowercase())
.join(&item.manifest_location[3..].replace('\\', "/"))
.to_path_buf()
.join(item.manifest_location[0..2].to_lowercase())
.join(item.manifest_location[3..].replace('\\', "/"))
.to_string_lossy()
.to_string();
item.install_location = compat_folder
.join("pfx")
.join("dosdevices")
.join(&item.install_location[0..2].to_lowercase())
.join(&item.install_location[3..].replace('\\', "/"))
.to_path_buf()
.join(item.install_location[0..2].to_lowercase())
.join(item.install_location[3..].replace('\\', "/"))
.to_string_lossy()
.to_string();