Skip to content

Commit c6a746b

Browse files
committed
Correct non unix to use an enum
1 parent 1cf7fec commit c6a746b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,8 @@ fn try_main() -> MainResult<i32> {
495495
#[cfg(not(unix))]
496496
{
497497
let exit_code = if action.execute {
498-
let cmd_name = action.build_kind.exec_command();
499-
info!("running `cargo {}`", cmd_name);
500498
let run_quietly = !action.cargo_output;
501-
let mut cmd = action.cargo(cmd_name, &args.script_args, run_quietly)?;
499+
let mut cmd = action.cargo(action.build_kind, &args.script_args, run_quietly)?;
502500

503501
cmd.status().map(|st| st.code().unwrap_or(1))?
504502
} else {

0 commit comments

Comments
 (0)