mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-16 08:58:26 +01:00
Fix clippy lints
This commit is contained in:
parent
0aee9b0fd9
commit
f27332ee8d
1 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue