diff options
| author | bors <bors@rust-lang.org> | 2015-02-28 13:49:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-28 13:49:35 +0000 |
| commit | 8a69110c3b1122596ddc8999bb2403a5777bb8ed (patch) | |
| tree | 9fb065fb1a4875074ca1a9795c0136d0f44da2a3 /src/libstd/sys | |
| parent | 6f8d83140618721e7b72a78f2e53a08e71e1d4cb (diff) | |
| parent | 077595943193ed8f0ae81e93a8e06781f79351ec (diff) | |
| download | rust-8a69110c3b1122596ddc8999bb2403a5777bb8ed.tar.gz rust-8a69110c3b1122596ddc8999bb2403a5777bb8ed.zip | |
Auto merge of #22895 - Manishearth:rollup, r=Manishearth
r? @Manishearth
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/process2.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/windows/process2.rs | 2 |
2 files changed, 2 insertions, 2 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 { diff --git a/src/libstd/sys/windows/process2.rs b/src/libstd/sys/windows/process2.rs index d4c6e85489f..8a6a485cbbe 100644 --- a/src/libstd/sys/windows/process2.rs +++ b/src/libstd/sys/windows/process2.rs @@ -160,7 +160,7 @@ impl Process { // Similarly to unix, we don't actually leave holes for the stdio file // descriptors, but rather open up /dev/null equivalents. These // equivalents are drawn from libuv's windows process spawning. - let set_fd = |&: fd: &Option<AnonPipe>, slot: &mut HANDLE, + let set_fd = |fd: &Option<AnonPipe>, slot: &mut HANDLE, is_stdin: bool| { match *fd { None => { |
