diff options
| author | Jorge Aparicio <japaric@linux.com> | 2014-07-09 20:00:44 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaric@linux.com> | 2014-07-09 20:18:26 -0500 |
| commit | 6d50828fdbf6eed62a8f22a52d81ecb4c5e98690 (patch) | |
| tree | e6a495928cdf9d7c3eba00c441228115f2590f61 /src/libstd | |
| parent | 942c72e1179bc2d3d351ea97235d65b39160cc18 (diff) | |
| download | rust-6d50828fdbf6eed62a8f22a52d81ecb4c5e98690.tar.gz rust-6d50828fdbf6eed62a8f22a52d81ecb4c5e98690.zip | |
Derive Clone for Command and StdioContainer
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/process.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs index 8f1046b62fd..d781c414d08 100644 --- a/src/libstd/io/process.rs +++ b/src/libstd/io/process.rs @@ -94,6 +94,7 @@ pub struct Process { /// /// let output = process.stdout.get_mut_ref().read_to_end(); /// ``` +#[deriving(Clone)] pub struct Command { // The internal data for the builder. Documented by the builder // methods below, and serialized into rt::rtio::ProcessConfig. @@ -340,6 +341,7 @@ pub struct ProcessOutput { } /// Describes what to do with a standard io stream for a child process. +#[deriving(Clone)] pub enum StdioContainer { /// This stream will be ignored. This is the equivalent of attaching the /// stream to `/dev/null` |
