diff options
| author | Ian Douglas Scott <ian@iandouglasscott.com> | 2017-06-30 13:37:05 -0700 |
|---|---|---|
| committer | Ian Douglas Scott <ian@iandouglasscott.com> | 2017-06-30 13:39:14 -0700 |
| commit | 3456608aaed5db6ec3a520a295983e97c4f031fd (patch) | |
| tree | 1825454ef8b9c01eb58956d4940fe40051c2dfba /src/libstd/sys | |
| parent | 8ee6bddf0b8b9b77ecd1e4b8105dc3fe161e6626 (diff) | |
| download | rust-3456608aaed5db6ec3a520a295983e97c4f031fd.tar.gz rust-3456608aaed5db6ec3a520a295983e97c4f031fd.zip | |
Fix long line
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/redox/fs.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/sys/redox/fs.rs b/src/libstd/sys/redox/fs.rs index 9a16fc1bf66..c5a19e8debe 100644 --- a/src/libstd/sys/redox/fs.rs +++ b/src/libstd/sys/redox/fs.rs @@ -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(()) |
