Skip to content

Commit

Permalink
Fixed compilation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mindstorm38 committed Oct 8, 2024
1 parent 98c5785 commit 067d590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/portablemc/src/standard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ pub(crate) fn symlink_or_copy_file(original: &Path, link: &Path) -> Result<()> {
}

#[cfg(not(unix))] {
err = fs::copy(original, link);
err = fs::copy(original, link).map(|_| ());
}

err.map_err(|e| Error::new_io_file(e, link.to_path_buf()))
Expand Down

0 comments on commit 067d590

Please sign in to comment.