Skip to content

Commit c9ace05

Browse files
committed
Auto merge of rust-lang#22749 - kballard:process-stdio-constructors, r=alexcrichton
There are no tests for this because testing inherit/null is tricky. Probably why there weren't tests for it to begin with.
2 parents dccdde4 + bbc3f2e commit c9ace05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,11 @@ impl Stdio {
355355
pub fn capture() -> Stdio { Stdio(StdioImp::Capture) }
356356

357357
/// The child inherits from the corresponding parent descriptor.
358-
pub fn inherit() -> Stdio { Stdio(StdioImp::Capture) }
358+
pub fn inherit() -> Stdio { Stdio(StdioImp::Inherit) }
359359

360360
/// This stream will be ignored. This is the equivalent of attaching the
361361
/// stream to `/dev/null`
362-
pub fn null() -> Stdio { Stdio(StdioImp::Capture) }
362+
pub fn null() -> Stdio { Stdio(StdioImp::Null) }
363363
}
364364

365365
/// Describes the result of a process after it has terminated.

0 commit comments

Comments
 (0)