From 6d50828fdbf6eed62a8f22a52d81ecb4c5e98690 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 9 Jul 2014 20:00:44 -0500 Subject: [PATCH] Derive Clone for Command and StdioContainer --- src/libstd/io/process.rs | 2 ++ 1 file changed, 2 insertions(+) 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` -- GitLab