From 3bf358a6dac7879eafce429b9959cea7064a6d14 Mon Sep 17 00:00:00 2001 From: Maximilian Lehrbaum Date: Sat, 29 Jan 2022 06:35:20 +0000 Subject: [PATCH] Fix symlink for windows. (#464) Fix #417. The parameters for symlink_file for windows were in wrong order. --- impl/src/metadata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/src/metadata.rs b/impl/src/metadata.rs index e5b7ca3c3..7de8a10e2 100644 --- a/impl/src/metadata.rs +++ b/impl/src/metadata.rs @@ -146,7 +146,7 @@ fn make_symlink(src: &Path, dest: &Path) -> Result<()> { /// Create a symlink file on windows systems #[cfg(target_family = "windows")] fn make_symlink(src: &Path, dest: &Path) -> Result<()> { - std::os::windows::fs::symlink_file(dest, src) + std::os::windows::fs::symlink_file(src, dest) .with_context(|| "Failed to create symlink for generating metadata") }