Skip to content

Commit

Permalink
refactor: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Piturnah committed Sep 20, 2023
1 parent f459aa7 commit 2d9f1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ fn run_command(cmd: &str, config: &Config, echo: bool) {

let out_pipe = if echo { Stdio::inherit } else { Stdio::null };
match process::Command::new(cmd.next().expect("No command provided"))
.args(cmd.collect::<Vec<&str>>())
.args(cmd)
.stdout(out_pipe())
.stderr(out_pipe())
.output()
Expand Down

0 comments on commit 2d9f1bb

Please sign in to comment.