mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
Don't capture stderr
This commit is contained in:
parent
d095a307dd
commit
b932ed1f67
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
|
|||
use std::env;
|
||||
use std::error::Error;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
use std::process::{Command, Stdio};
|
||||
|
||||
/// Contains the structure of resulting rust-project.json file
|
||||
/// and functions to build the data required to create the file
|
||||
|
@ -35,6 +35,7 @@ impl RustAnalyzerProject {
|
|||
let toolchain = Command::new("rustc")
|
||||
.arg("--print")
|
||||
.arg("sysroot")
|
||||
.stderr(Stdio::inherit())
|
||||
.output()
|
||||
.context("Failed to get the sysroot from `rustc`. Do you have `rustc` installed?")?
|
||||
.stdout;
|
||||
|
|
Loading…
Reference in a new issue