Fix long line
This commit is contained in:
parent
8ee6bddf0b
commit
3456608aae
1 changed files with 2 additions and 1 deletions
|
|
@ -428,7 +428,8 @@ pub fn readlink(p: &Path) -> io::Result<PathBuf> {
|
|||
}
|
||||
|
||||
pub fn symlink(src: &Path, dst: &Path) -> io::Result<()> {
|
||||
let fd = cvt(syscall::open(dst.to_str().unwrap(), syscall::O_SYMLINK | syscall::O_CREAT | syscall::O_WRONLY | 0o777))?;
|
||||
let fd = cvt(syscall::open(dst.to_str().unwrap(),
|
||||
syscall::O_SYMLINK | syscall::O_CREAT | syscall::O_WRONLY | 0o777))?;
|
||||
cvt(syscall::write(fd, src.to_str().unwrap().as_bytes()))?;
|
||||
cvt(syscall::close(fd))?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue