Skip to content

Commit b932ed1

Browse files
committed
Don't capture stderr
1 parent d095a30 commit b932ed1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/project.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
44
use std::env;
55
use std::error::Error;
66
use std::path::PathBuf;
7-
use std::process::Command;
7+
use std::process::{Command, Stdio};
88

99
/// Contains the structure of resulting rust-project.json file
1010
/// and functions to build the data required to create the file
@@ -35,6 +35,7 @@ impl RustAnalyzerProject {
3535
let toolchain = Command::new("rustc")
3636
.arg("--print")
3737
.arg("sysroot")
38+
.stderr(Stdio::inherit())
3839
.output()
3940
.context("Failed to get the sysroot from `rustc`. Do you have `rustc` installed?")?
4041
.stdout;

0 commit comments

Comments
 (0)