From d1d49675a0243910905feb715279931fd743f0f3 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 5 Sep 2023 13:24:21 +0100 Subject: [PATCH] agent: config: Allow clippy lint - Allow `clippy::redundant-closure-call` in `from_cmdline` which has issues with the guard function passed into the `parse_cmdline_param` macro Fixes: #7902 Signed-off-by: stevenhorsman --- src/agent/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/agent/src/config.rs b/src/agent/src/config.rs index 4f2f72bbbc..068955a54d 100644 --- a/src/agent/src/config.rs +++ b/src/agent/src/config.rs @@ -253,6 +253,7 @@ impl FromStr for AgentConfig { impl AgentConfig { #[instrument] + #[allow(clippy::redundant_closure_call)] pub fn from_cmdline(file: &str, args: Vec) -> Result { // If config file specified in the args, generate our config from it let config_position = args.iter().position(|a| a == "--config" || a == "-c");