xtask: don't drop cargo exec iterator in run()

This commit is contained in:
Alex Janka 2024-08-19 14:15:37 +10:00
parent 90d6d38625
commit 6ebcf1bd27

View file

@ -228,7 +228,7 @@ fn run_cli(
.position(|arg| arg == "--")
.map(|extra_args_index| args[extra_args_index..].to_vec());
for _ in cargo_exec(
let mut i = cargo_exec(
"run",
"cli",
triple,
@ -236,7 +236,8 @@ fn run_cli(
debug,
additional_flags,
true,
)? {}
)?;
while let Some(Ok(_)) = i.next() {}
Ok(())
}