diff options
-rw-r--r-- | crates/ra_proc_macro/src/process.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ra_proc_macro/src/process.rs b/crates/ra_proc_macro/src/process.rs index df4d61682..f4b40ac3c 100644 --- a/crates/ra_proc_macro/src/process.rs +++ b/crates/ra_proc_macro/src/process.rs | |||
@@ -55,8 +55,11 @@ impl Process { | |||
55 | 55 | ||
56 | fn restart(&mut self) -> Result<(), io::Error> { | 56 | fn restart(&mut self) -> Result<(), io::Error> { |
57 | let _ = self.child.kill(); | 57 | let _ = self.child.kill(); |
58 | self.child = | 58 | self.child = Command::new(self.path.clone()) |
59 | Command::new(self.path.clone()).stdin(Stdio::piped()).stdout(Stdio::piped()).spawn()?; | 59 | .stdin(Stdio::piped()) |
60 | .stdout(Stdio::piped()) | ||
61 | .stderr(Stdio::null()) | ||
62 | .spawn()?; | ||
60 | Ok(()) | 63 | Ok(()) |
61 | } | 64 | } |
62 | 65 | ||