Cleanup code

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
Ralf Jung
2020-07-09 13:02:42 +02:00
committed by GitHub
parent ee056ccf7b
commit 2fbc4aa7ca
+1 -2
View File
@@ -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)
}