Make platforms generic

This commit is contained in:
Philip Kristoffersen
2021-09-25 08:50:03 +02:00
parent 99079dcaff
commit 9493262076
13 changed files with 136 additions and 93 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ pub struct ManifestItem {
pub app_name: String,
}
impl From<&ManifestItem> for ShortcutOwned {
fn from(manifest: &ManifestItem) -> Self {
impl From<ManifestItem> for ShortcutOwned {
fn from(manifest: ManifestItem) -> Self {
let exe = format!(
"\"{}\\{}\"",
manifest.install_location, manifest.launch_executable