Skip to content

Commit b01e445

Browse files
authored
fix scope in suppress dead_code (template) (#7532)
`#[allow(dead_code)]` -> `#![allow(dead_code)]` in templates
1 parent 71c19e4 commit b01e445

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

substrate/.maintain/frame-umbrella-weight-template.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![allow(unused_parens)]
1717
#![allow(unused_imports)]
1818
#![allow(missing_docs)]
19-
#[allow(dead_code)]
19+
#![allow(dead_code)]
2020

2121
use frame::weights_prelude::*;
2222

substrate/.maintain/frame-weight-template.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![allow(unused_parens)]
1717
#![allow(unused_imports)]
1818
#![allow(missing_docs)]
19-
#[allow(dead_code)]
19+
#![allow(dead_code)]
2020

2121
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
2222
use core::marker::PhantomData;

0 commit comments

Comments
 (0)