Fix clippy

This commit is contained in:
Roey Darwish Dror
2021-09-02 06:18:01 +03:00
parent 611f69646e
commit bde3600b9a

View File

@@ -103,7 +103,7 @@ fn run() -> Result<()> {
if let Some(commands) = config.pre_commands() { if let Some(commands) = config.pre_commands() {
for (name, command) in commands { for (name, command) in commands {
generic::run_custom_command(&name, &command, &ctx)?; generic::run_custom_command(name, command, &ctx)?;
} }
} }
@@ -328,7 +328,7 @@ fn run() -> Result<()> {
if let Some(commands) = config.commands() { if let Some(commands) = config.commands() {
for (name, command) in commands { for (name, command) in commands {
runner.execute(Step::CustomCommands, name, || { runner.execute(Step::CustomCommands, name, || {
generic::run_custom_command(&name, &command, &ctx) generic::run_custom_command(name, command, &ctx)
})?; })?;
} }
} }
@@ -392,7 +392,7 @@ fn run() -> Result<()> {
let mut post_command_failed = false; let mut post_command_failed = false;
if let Some(commands) = config.post_commands() { if let Some(commands) = config.post_commands() {
for (name, command) in commands { for (name, command) in commands {
if generic::run_custom_command(&name, &command, &ctx).is_err() { if generic::run_custom_command(name, command, &ctx).is_err() {
post_command_failed = true; post_command_failed = true;
} }
} }