Skip to content

Commit 2fbc4aa

Browse files
RalfJungmatklad
andauthored
Cleanup code
Co-authored-by: Aleksey Kladov <[email protected]>
1 parent ee056cc commit 2fbc4aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cargo-miri/bin.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ fn setup(subcommand: MiriCommand) {
257257

258258
// Determine where the rust sources are located. `XARGO_RUST_SRC` env var trumps everything.
259259
let rust_src = match std::env::var_os("XARGO_RUST_SRC") {
260-
Some(val) => {
261-
let path = PathBuf::from(val);
260+
Some(path) => {
262261
// Make path absolute, but not via `canonicalize` (which does not work very well on Windows).
263262
env::current_dir().unwrap().join(path)
264263
}

0 commit comments

Comments
 (0)