From d58f4278bcf273496e11ba3c3eeffe0fbeab03d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Dimitroff=20H=C3=B3di?= Date: Thu, 29 Feb 2024 18:43:44 -0300 Subject: [PATCH] Fixed clippy suggestions --- node/tools/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/tools/src/config.rs b/node/tools/src/config.rs index da763135..5debb060 100644 --- a/node/tools/src/config.rs +++ b/node/tools/src/config.rs @@ -197,7 +197,7 @@ impl<'a> ConfigArgs<'a> { })() .context("config")?, - validator_key: (|| { + validator_key: { let key = match self.validator_key { Some(key) => Some(key.clone()), None => fs::read_to_string(self.validator_key_file) @@ -208,7 +208,7 @@ impl<'a> ConfigArgs<'a> { .ok(), }; key.map(|value| Text::new(&value).decode().context("failed decoding key")) - })() + } .transpose() .context("validator key")?,