about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorIan Douglas Scott <ian@iandouglasscott.com>2017-06-30 13:37:05 -0700
committerIan Douglas Scott <ian@iandouglasscott.com>2017-06-30 13:39:14 -0700
commit3456608aaed5db6ec3a520a295983e97c4f031fd (patch)
tree1825454ef8b9c01eb58956d4940fe40051c2dfba /src/libstd/sys
parent8ee6bddf0b8b9b77ecd1e4b8105dc3fe161e6626 (diff)
downloadrust-3456608aaed5db6ec3a520a295983e97c4f031fd.tar.gz
rust-3456608aaed5db6ec3a520a295983e97c4f031fd.zip
Fix long line
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/redox/fs.rs3
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(())