Fix clippy lints

This commit is contained in:
Thayne McCombs 2022-02-18 01:27:40 -07:00 committed by David Peter
parent 0aee9b0fd9
commit f27332ee8d

View file

@ -202,12 +202,12 @@ impl CommandTemplate {
cmd.arg(arg.generate(&input, path_separator)); cmd.arg(arg.generate(&input, path_separator));
} }
execute_command(cmd, &out_perm, buffer_output) execute_command(cmd, out_perm, buffer_output)
} }
fn generate_and_execute_batch( fn generate_and_execute_batch(
&self, &self,
paths: &Vec<PathBuf>, paths: &[PathBuf],
path_separator: Option<&str>, path_separator: Option<&str>,
buffer_output: bool, buffer_output: bool,
) -> ExitCode { ) -> ExitCode {
@ -459,10 +459,10 @@ mod tests {
CommandSet::new_batch(vec![vec!["echo", "{.}"]], None).unwrap(), CommandSet::new_batch(vec![vec!["echo", "{.}"]], None).unwrap(),
CommandSet { CommandSet {
commands: vec![CommandTemplate { commands: vec![CommandTemplate {
args: vec![ args: vec![
ArgumentTemplate::Text("echo".into()), ArgumentTemplate::Text("echo".into()),
ArgumentTemplate::Tokens(vec![Token::NoExt]), ArgumentTemplate::Tokens(vec![Token::NoExt]),
], ],
}], }],
mode: ExecutionMode::Batch, mode: ExecutionMode::Batch,
path_separator: None, path_separator: None,