Skip to content

Commit

Permalink
Fix long line
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Jun 30, 2017
1 parent 8ee6bdd commit 3456608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/sys/redox/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 3456608

Please sign in to comment.