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:
parent
f220c86121
commit
b76c53c090
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue