Skip to content

Commit ca622d1

Browse files
committed
Back compat fix.
1 parent fcd6b60 commit ca622d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/util/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ macro_rules! cargo_script {
2424
)*
2525

2626
cmd.env_remove("CARGO_TARGET_DIR");
27-
28-
let env: &[(&str, &str)] = &[$((stringify!($env_k), $env_v),)*];
29-
cmd.envs(env.iter().cloned());
27+
$(cmd.env(stringify!($env_k), $env_v);)*
3028

3129
cmd_str = format!("{:?}", cmd);
3230

0 commit comments

Comments
 (0)