From 1a01a6767dd27c8fa6cc66618e5c657d74d68b11 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 b174823b3840..050e74a16d7e 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 ec9eee205cee..541f064850a7 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;