Skip to content

Commit e557f66

Browse files
author
Michael Wright
committed
Fix Windows rustc env var display
Remove the space at the end of the set commands.
1 parent 8139037 commit e557f66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/util/process_builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl fmt::Display for ProcessBuilder {
4040
if let Some(val) = val {
4141
let val = escape(val.to_string_lossy());
4242
if cfg!(windows) {
43-
write!(f, "set {}={} && ", key, val)?;
43+
write!(f, "set {}={}&& ", key, val)?;
4444
} else {
4545
write!(f, "{}={} ", key, val)?;
4646
}

tests/testsuite/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1572,9 +1572,9 @@ fn vv_prints_rustc_env_vars() {
15721572

15731573
if cfg!(windows) {
15741574
b.with_stderr_contains(
1575-
"[RUNNING] `[..]set CARGO_PKG_NAME=foo && [..]rustc [..]`"
1575+
"[RUNNING] `[..]set CARGO_PKG_NAME=foo&& [..]rustc [..]`"
15761576
).with_stderr_contains(
1577-
r#"[RUNNING] `[..]set CARGO_PKG_AUTHORS="escape='\"@example.com" && [..]rustc [..]`"#
1577+
r#"[RUNNING] `[..]set CARGO_PKG_AUTHORS="escape='\"@example.com"&& [..]rustc [..]`"#
15781578
)
15791579
} else {
15801580
b.with_stderr_contains(

0 commit comments

Comments
 (0)