mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 07:07:32 +00:00
Prep work for overriding sysroot
The idea here is to make auto-discovery optional, and to allow to set the path to sysroot directly. This is handy for JSON projects.
This commit is contained in:
parent
81a3404d8f
commit
6b8bc132dc
2 changed files with 61 additions and 54 deletions
|
@ -561,5 +561,5 @@ fn utf8_stdout(mut cmd: Command) -> Result<String> {
|
|||
}
|
||||
}
|
||||
let stdout = String::from_utf8(output.stdout)?;
|
||||
Ok(stdout)
|
||||
Ok(stdout.trim().to_string())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue