Skip to content

Commit

Permalink
add allow(dead_code) to substrate weight templates (#7408)
Browse files Browse the repository at this point in the history
address failed CI after full regeneration

Example #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)
  • Loading branch information
mordamax authored Feb 3, 2025
1 parent 4cd07c5 commit 4f4f6f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions substrate/.maintain/frame-umbrella-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
#[allow(dead_code)]

use frame::weights_prelude::*;

Expand Down
1 change: 1 addition & 0 deletions substrate/.maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f4f6f8

Please sign in to comment.