Skip to content

Commit dcb531f

Browse files
NCGThompsonantoyo
andauthored
Update build_system/src/test.rs
Co-authored-by: antoyo <[email protected]>
1 parent 7dd3f6f commit dcb531f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_system/src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ fn setup_rustc(env: &mut Env, args: &TestArg) -> Result<(), String> {
527527
}
528528
})?;
529529
let rustc = String::from_utf8(
530-
run_command_with_env(&[&"rustup", &OsStr::new(&*toolchain), &"which", &"rustc"], rust_dir, Some(env))?.stdout,
530+
run_command_with_env(&[&"rustup", &toolchain, &"which", &"rustc"], rust_dir, Some(env))?.stdout,
531531
)
532532
.map_err(|error| format!("Failed to retrieve rustc path: {:?}", error))
533533
.and_then(|rustc| {

0 commit comments

Comments
 (0)