We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ee6bdd commit 3456608Copy full SHA for 3456608
src/libstd/sys/redox/fs.rs
@@ -428,7 +428,8 @@ pub fn readlink(p: &Path) -> io::Result<PathBuf> {
428
}
429
430
pub fn symlink(src: &Path, dst: &Path) -> io::Result<()> {
431
- 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(),
432
+ syscall::O_SYMLINK | syscall::O_CREAT | syscall::O_WRONLY | 0o777))?;
433
cvt(syscall::write(fd, src.to_str().unwrap().as_bytes()))?;
434
cvt(syscall::close(fd))?;
435
Ok(())
0 commit comments