1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

ln: fix windows non-compiling code

This commit is contained in:
Niyaz Nigmatullin 2022-07-19 00:03:02 +03:00
parent f220c86121
commit b76c53c090

View file

@ -492,7 +492,7 @@ fn existing_backup_path(path: &Path, suffix: &str) -> PathBuf {
}
#[cfg(windows)]
pub fn symlink<P1: AsRef<Path>, P2: AsRef<Path>>(src: P1, dst: P2) -> Result<()> {
pub fn symlink<P1: AsRef<Path>, P2: AsRef<Path>>(src: P1, dst: P2) -> std::io::Result<()> {
if src.as_ref().is_dir() {
symlink_dir(src, dst)
} else {