Skip to content

Commit 067d590

Browse files
committed
Fixed compilation on windows
1 parent 98c5785 commit 067d590

File tree

1 file changed

+1
-1
lines changed
  • rust/portablemc/src/standard

1 file changed

+1
-1
lines changed

rust/portablemc/src/standard/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ pub(crate) fn symlink_or_copy_file(original: &Path, link: &Path) -> Result<()> {
21732173
}
21742174

21752175
#[cfg(not(unix))] {
2176-
err = fs::copy(original, link);
2176+
err = fs::copy(original, link).map(|_| ());
21772177
}
21782178

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

0 commit comments

Comments
 (0)