Change argument order

This commit is contained in:
David Peter 2022-02-22 11:57:22 +01:00 committed by David Peter
parent d27cbceed2
commit e001530f61

View File

@ -67,15 +67,15 @@ impl<'a> Executor for ShellExecutor<'a> {
let mut command_builder = self.shell.command();
command_builder
.arg(if cfg!(windows) { "/C" } else { "-c" })
.arg(command.get_command_line())
.stdin(Stdio::null())
.stdout(stdout)
.stderr(stderr)
.env(
"HYPERFINE_RANDOMIZED_ENVIRONMENT_OFFSET",
randomized_environment_offset::value(),
)
.stdin(Stdio::null())
.stdout(stdout)
.stderr(stderr);
.arg(if cfg!(windows) { "/C" } else { "-c" })
.arg(command.get_command_line());
let wallclock_timer = WallClockTimer::start();
let result = execute_and_measure(command_builder)