From b01e445221ac4b554c2117655d20a9d2d707c6f9 Mon Sep 17 00:00:00 2001
From: Maksym H <1177472+mordamax@users.noreply.github.com>
Date: Tue, 11 Feb 2025 13:04:06 +0000
Subject: [PATCH] fix scope in suppress dead_code (template) (#7532)

`#[allow(dead_code)]` -> `#![allow(dead_code)]` in templates
---
 substrate/.maintain/frame-umbrella-weight-template.hbs | 2 +-
 substrate/.maintain/frame-weight-template.hbs          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/substrate/.maintain/frame-umbrella-weight-template.hbs b/substrate/.maintain/frame-umbrella-weight-template.hbs
index 050e74a16d7..c99758c41d9 100644
--- a/substrate/.maintain/frame-umbrella-weight-template.hbs
+++ b/substrate/.maintain/frame-umbrella-weight-template.hbs
@@ -16,7 +16,7 @@
 #![allow(unused_parens)]
 #![allow(unused_imports)]
 #![allow(missing_docs)]
-#[allow(dead_code)]
+#![allow(dead_code)]
 
 use frame::weights_prelude::*;
 
diff --git a/substrate/.maintain/frame-weight-template.hbs b/substrate/.maintain/frame-weight-template.hbs
index 541f064850a..624fc57aa32 100644
--- a/substrate/.maintain/frame-weight-template.hbs
+++ b/substrate/.maintain/frame-weight-template.hbs
@@ -16,7 +16,7 @@
 #![allow(unused_parens)]
 #![allow(unused_imports)]
 #![allow(missing_docs)]
-#[allow(dead_code)]
+#![allow(dead_code)]
 
 use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
 use core::marker::PhantomData;
-- 
GitLab