Fix compile warning on windows

This commit is contained in:
Philip
2021-10-06 23:45:12 +02:00
parent 0d6da9c5f0
commit 7b6f318e90
+1 -1
View File
@@ -93,10 +93,10 @@ where
T: Into<ShortcutOwned>, T: Into<ShortcutOwned>,
{ {
if platform.enabled() { if platform.enabled() {
let name = platform.name();
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
if platform.create_symlinks() { if platform.create_symlinks() {
let name = platform.name();
super::symlinks::ensure_links_folder_created(name); super::symlinks::ensure_links_folder_created(name);
} }