diff options
| author | bors <bors@rust-lang.org> | 2017-08-16 04:00:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-16 04:00:24 +0000 |
| commit | 6f4ab9458a7ad06c8ce630604f533c8c0c0acef4 (patch) | |
| tree | 8b1076cf97b6482b624b3655e078a4530a460cb3 /src/libstd/process.rs | |
| parent | e40dc66f47614eb2d1c8026d112a27b6f8b291d0 (diff) | |
| parent | 1b6c9605e41b7c7dc23e0e6f633f05912d0463dd (diff) | |
| download | rust-6f4ab9458a7ad06c8ce630604f533c8c0c0acef4.tar.gz rust-6f4ab9458a7ad06c8ce630604f533c8c0c0acef4.zip | |
Auto merge of #43710 - zackmdavis:field_init_shorthand_power_slam, r=Mark-Simulacrum
use field init shorthand EVERYWHERE Like #43008 (f668999), but [(lacking reasons to be more timid)](https://github.com/rust-lang/rust/pull/43008#issuecomment-312463564) _much more aggressive_. r? @Mark-Simulacrum
Diffstat (limited to 'src/libstd/process.rs')
| -rw-r--r-- | src/libstd/process.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index a872e7eee06..a3a7e91dd80 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -126,7 +126,7 @@ impl AsInner<imp::Process> for Child { impl FromInner<(imp::Process, imp::StdioPipes)> for Child { fn from_inner((handle, io): (imp::Process, imp::StdioPipes)) -> Child { Child { - handle: handle, + handle, stdin: io.stdin.map(ChildStdin::from_inner), stdout: io.stdout.map(ChildStdout::from_inner), stderr: io.stderr.map(ChildStderr::from_inner), @@ -1035,9 +1035,9 @@ impl Child { let status = self.wait()?; Ok(Output { - status: status, - stdout: stdout, - stderr: stderr, + status, + stdout, + stderr, }) } } |
