]> git.lizzy.rs Git - rust.git/commitdiff
Derive Clone for Command and StdioContainer
authorJorge Aparicio <japaric@linux.com>
Thu, 10 Jul 2014 01:00:44 +0000 (20:00 -0500)
committerJorge Aparicio <japaric@linux.com>
Thu, 10 Jul 2014 01:18:26 +0000 (20:18 -0500)
src/libstd/io/process.rs

index 8f1046b62fd91040f188e07b661df518f2d44b6f..d781c414d08a71fbbb0213f87c216f65fb58e0a8 100644 (file)
@@ -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`