From bde3600b9a92741eda1cb135b180f02984ad0f68 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Thu, 2 Sep 2021 06:18:01 +0300 Subject: [PATCH] Fix clippy --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 993f3731..4d0c1110 100644 --- a/src/main.rs +++ b/src/main.rs @@ -103,7 +103,7 @@ fn run() -> Result<()> { if let Some(commands) = config.pre_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() { for (name, command) in commands { 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; if let Some(commands) = config.post_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; } }