From 75cfdd5d59d4f8b7beef085b0911d2922626d640 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 a58cc3ff93..36bdf66c86 100644 --- a/src/agent/src/config.rs +++ b/src/agent/src/config.rs @@ -195,6 +195,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");