Cleanup code
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
parent
ee056ccf7b
commit
2fbc4aa7ca
1 changed files with 1 additions and 2 deletions
|
|
@ -257,8 +257,7 @@ fn setup(subcommand: MiriCommand) {
|
|||
|
||||
// Determine where the rust sources are located. `XARGO_RUST_SRC` env var trumps everything.
|
||||
let rust_src = match std::env::var_os("XARGO_RUST_SRC") {
|
||||
Some(val) => {
|
||||
let path = PathBuf::from(val);
|
||||
Some(path) => {
|
||||
// Make path absolute, but not via `canonicalize` (which does not work very well on Windows).
|
||||
env::current_dir().unwrap().join(path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue