From 4f4f6f82bd54748231384128c8d8b37e51bd8367 Mon Sep 17 00:00:00 2001
From: Maksym H <1177472+mordamax@users.noreply.github.com>
Date: Mon, 3 Feb 2025 12:25:21 +0000
Subject: [PATCH] add allow(dead_code) to substrate weight templates (#7408)

address failed CI after full regeneration

Example https://github.com/paritytech/polkadot-sdk/pull/7406
Failed CI
https://github.com/paritytech/polkadot-sdk/actions/runs/13070646240

Monkey-patched weights which have been overridden by automation

![image](https://github.com/user-attachments/assets/ecf69173-f4dd-4113-a319-4f29d779ecae)
---
 substrate/.maintain/frame-umbrella-weight-template.hbs | 1 +
 substrate/.maintain/frame-weight-template.hbs          | 1 +
 2 files changed, 2 insertions(+)

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