Skip to content

Commit c90f6db

Browse files
committed
Fix build on Windows
1 parent 67a03a1 commit c90f6db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/cli-paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ mod windows {
354354
use rustup::test::{get_path, with_saved_path};
355355

356356
use super::INIT_NONE;
357-
use crate::mock::clitools::{self, expect_ok, Scenario};
357+
use crate::mock::clitools::{self, Scenario};
358358

359359
#[test]
360360
/// Smoke test for end-to-end code connectivity of the installer path mgmt on windows.

tests/cli-rustup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ fn non_utf8_arg() {
19191919

19201920
setup(&|config| {
19211921
config.expect_ok(&["rustup", "default", "nightly"]);
1922-
let out = self.run(
1922+
let out = config.run(
19231923
"rustc",
19241924
&[
19251925
OsString::from("--echo-args".to_string()),
@@ -1957,7 +1957,7 @@ fn non_utf8_toolchain() {
19571957

19581958
setup(&|config| {
19591959
config.expect_ok(&["rustup", "default", "nightly"]);
1960-
let out = self.run(
1960+
let out = config.run(
19611961
"rustc",
19621962
&[OsString::from_wide(&[u16::from(b'+'), 0xd801, 0xd801])],
19631963
&[("RUST_BACKTRACE", "1")],

0 commit comments

Comments
 (0)