Skip to content

Commit 6ed030d

Browse files
committed
Pipe error to stderr
1 parent 02b849a commit 6ed030d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/ra_proc_macro/src/process.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ impl Process {
5555

5656
fn restart(&mut self) -> Result<(), io::Error> {
5757
let _ = self.child.kill();
58-
self.child =
59-
Command::new(self.path.clone()).stdin(Stdio::piped()).stdout(Stdio::piped()).spawn()?;
58+
self.child = Command::new(self.path.clone())
59+
.stdin(Stdio::piped())
60+
.stdout(Stdio::piped())
61+
.stderr(Stdio::null())
62+
.spawn()?;
6063
Ok(())
6164
}
6265

0 commit comments

Comments
 (0)