about summary refs log tree commit diff
path: root/src/libstd/sys/windows/process.rs
diff options
context:
space:
mode:
authorTed Mielczarek <ted@mielczarek.org>2016-11-30 21:31:47 -0500
committerTed Mielczarek <ted@mielczarek.org>2016-11-30 21:31:47 -0500
commite6975e974841c59a6e67e8a158b306f29d35d513 (patch)
treebe993b80b13cb487957ef14f31ec3bbf1b281c63 /src/libstd/sys/windows/process.rs
parent8b1c4cbbaf0252ed68f62b0613a8da9725141262 (diff)
downloadrust-e6975e974841c59a6e67e8a158b306f29d35d513.tar.gz
rust-e6975e974841c59a6e67e8a158b306f29d35d513.zip
just add one method named creation_flags, fix the tidy error
Diffstat (limited to 'src/libstd/sys/windows/process.rs')
-rw-r--r--src/libstd/sys/windows/process.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs
index a221c67efd9..969de6b85a6 100644
--- a/src/libstd/sys/windows/process.rs
+++ b/src/libstd/sys/windows/process.rs
@@ -126,12 +126,9 @@ impl Command {
     pub fn stderr(&mut self, stderr: Stdio) {
         self.stderr = Some(stderr);
     }
-    pub fn set_creation_flags(&mut self, flags: u32) {
+    pub fn creation_flags(&mut self, flags: u32) {
         self.flags = flags;
     }
-    pub fn add_creation_flags(&mut self, flags: u32) {
-        self.flags = self.flags | flags;
-    }
 
     pub fn spawn(&mut self, default: Stdio, needs_stdin: bool)
                  -> io::Result<(Process, StdioPipes)> {