From 4541230b9c365878f2fd6bce2d77c5ba9d6c97b8 Mon Sep 17 00:00:00 2001 From: Adam Reif Date: Sat, 23 Jul 2022 07:27:41 -0500 Subject: [PATCH] Minor: Ignore target folder on `taplo fmt` + clippy (#700) * exclude target dir from taplo format check Signed-off-by: Adam Reif * clippy 1 Signed-off-by: Adam Reif Co-authored-by: Georgi Zlatarev <45011053+ghzlatarev@users.noreply.github.com> --- .taplo.toml | 1 + pallets/manta-pay/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.taplo.toml b/.taplo.toml index 5f3f5e1a0..ee888fa80 100644 --- a/.taplo.toml +++ b/.taplo.toml @@ -1,3 +1,4 @@ +exclude = ["target/*"] [formatting] array_auto_collapse = false array_auto_expand = false diff --git a/pallets/manta-pay/src/lib.rs b/pallets/manta-pay/src/lib.rs index d4de6298e..ebecaec6c 100644 --- a/pallets/manta-pay/src/lib.rs +++ b/pallets/manta-pay/src/lib.rs @@ -894,7 +894,7 @@ where &proof, ) .ok()? - .then(move || (Wrap(()), event)) + .then_some((Wrap(()), event)) } #[inline]