Skip to content
Myr

Fix clippy lints

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by David Peter · parent 0aee9b0 · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:src/exec/mod.rs+6 added-6 removed
200 unmodified lines
201 for arg in &self.args[1..] {202 cmd.arg(arg.generate(&input, path_separator));203 }204205 execute_command(cmd, &out_perm, buffer_output)205 execute_command(cmd, out_perm, buffer_output)206 }207208 fn generate_and_execute_batch(209 &self,210 paths: &Vec<PathBuf>,210 paths: &[PathBuf],211 path_separator: Option<&str>,212 buffer_output: bool,213 ) -> ExitCode {214 let mut cmd = Command::new(self.args[0].generate("", None));
243 unmodified lines
458 assert_eq!(459 CommandSet::new_batch(vec![vec!["echo", "{.}"]], None).unwrap(),460 CommandSet {461 commands: vec![CommandTemplate {462 args: vec![463 ArgumentTemplate::Text("echo".into()),464 ArgumentTemplate::Tokens(vec![Token::NoExt]),465 ],462 args: vec![463 ArgumentTemplate::Text("echo".into()),464 ArgumentTemplate::Tokens(vec![Token::NoExt]),465 ],466 }],467 mode: ExecutionMode::Batch,468 path_separator: None,469 }
50 unmodified lines