about summary refs log tree commit diff
path: root/src/libstd/sys/unix
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-28 13:56:29 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-28 19:19:00 +0530
commit040a811b9190d2c2c595e09b5d1db07bedffdde9 (patch)
treebe5796c6b76fbaf78d79006b8086f7052133a1e7 /src/libstd/sys/unix
parent37760c1f25fc55814a92cce1c98edefdc0740188 (diff)
parent7ad2e22e4ee1cfc5c6c4a53a6d19f2b853de1c6e (diff)
downloadrust-040a811b9190d2c2c595e09b5d1db07bedffdde9.tar.gz
rust-040a811b9190d2c2c595e09b5d1db07bedffdde9.zip
Rollup merge of #22884 - japaric:obsolete, r=alexcrichton
 This is leftover from #21843

If you still have `|&:| {}` closures in your code, simply remove the `&:` part.

[breaking-change]
Diffstat (limited to 'src/libstd/sys/unix')
-rw-r--r--src/libstd/sys/unix/process2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/process2.rs b/src/libstd/sys/unix/process2.rs
index a7d0a864a08..1ae59139bc4 100644
--- a/src/libstd/sys/unix/process2.rs
+++ b/src/libstd/sys/unix/process2.rs
@@ -274,7 +274,7 @@ impl Process {
                 // file descriptor. Otherwise, the first file descriptor opened
                 // up in the child would be numbered as one of the stdio file
                 // descriptors, which is likely to wreak havoc.
-                let setup = |&: src: Option<AnonPipe>, dst: c_int| {
+                let setup = |src: Option<AnonPipe>, dst: c_int| {
                     let src = match src {
                         None => {
                             let flags = if dst == libc::STDIN_FILENO {