From 580111dd9898dd43ad869a576c1e568e39b8fd44 Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Mon, 8 May 2023 18:48:04 +0200 Subject: [PATCH] Tests can use dbg macro (#7197) There is a deny(clippy::dbg_macro) in the crate root, so newer Clippy fails here since tests use dbg. But dbg in tests are fine IMHO. Signed-off-by: Oliver Tale-Yazdi --- polkadot/node/gum/proc-macro/src/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polkadot/node/gum/proc-macro/src/tests.rs b/polkadot/node/gum/proc-macro/src/tests.rs index c97a7c5980..6cf04c59d9 100644 --- a/polkadot/node/gum/proc-macro/src/tests.rs +++ b/polkadot/node/gum/proc-macro/src/tests.rs @@ -14,6 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . +#![allow(clippy::dbg_macro)] + use super::*; use assert_matches::assert_matches; @@ -127,7 +129,6 @@ mod roundtrip { } #[test] - fn sample_w_candidate_hash_aliased_unnecessary() { assert_matches!(impl_gum2( quote! {