about summary refs log tree commit diff
path: root/src/libstd/sys/redox/process.rs
diff options
context:
space:
mode:
authorNODA, Kai <nodakai@gmail.com>2017-07-18 00:04:46 +0800
committerNODA, Kai <nodakai@gmail.com>2017-07-18 00:07:09 +0800
commit2e8859ce4e97df8e2b1372e20efe4f8676c0f178 (patch)
tree61d2244bbfa1c7c76136b321e1ec782755876e29 /src/libstd/sys/redox/process.rs
parent5803f99bd4c53c3f469df26513ffa2e058094c53 (diff)
downloadrust-2e8859ce4e97df8e2b1372e20efe4f8676c0f178.tar.gz
rust-2e8859ce4e97df8e2b1372e20efe4f8676c0f178.zip
libstd: remove redundant & from &Path::new(...)
fn Path::new<S: AsRef ...>(s: &S) -> &Path

Signed-off-by: NODA, Kai <nodakai@gmail.com>
Diffstat (limited to 'src/libstd/sys/redox/process.rs')
-rw-r--r--src/libstd/sys/redox/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/redox/process.rs b/src/libstd/sys/redox/process.rs
index 62d873d257d..ffa6bf0fa3e 100644
--- a/src/libstd/sys/redox/process.rs
+++ b/src/libstd/sys/redox/process.rs
@@ -393,7 +393,7 @@ impl Stdio {
                 let mut opts = OpenOptions::new();
                 opts.read(readable);
                 opts.write(!readable);
-                let fd = File::open(&Path::new("null:"), &opts)?;
+                let fd = File::open(Path::new("null:"), &opts)?;
                 Ok((ChildStdio::Owned(fd.into_fd()), None))
             }
         }