Skip to content

Commit

Permalink
Add allow(unused_imports) as needed to resolve clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Nov 21, 2023
1 parent b82f8c1 commit 1626c20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions substrate/frame/support/test/tests/common/outer_enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// - `pallet2`: declares an error with `#[pallet::error]`
// - `pallet3`: does not declare an error.

#[allow(unused_imports)]
#[frame_support::pallet(dev_mode)]
pub mod pallet {
use frame_support::pallet_prelude::*;
Expand Down Expand Up @@ -66,6 +67,7 @@ pub mod pallet {
}
}

#[allow(unused_imports)]
#[frame_support::pallet]
pub mod pallet2 {
use frame_support::pallet_prelude::*;
Expand Down Expand Up @@ -110,6 +112,7 @@ pub mod pallet2 {
}
}

#[allow(unused_imports)]
#[frame_support::pallet]
pub mod pallet3 {
use frame_support::pallet_prelude::*;
Expand Down
1 change: 1 addition & 0 deletions substrate/frame/support/test/tests/versioned_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use sp_runtime::BuildStorage;

type Block = frame_system::mocking::MockBlock<Test>;

#[allow(unused_imports)]
#[frame_support::pallet]
mod dummy_pallet {
use frame_support::pallet_prelude::*;
Expand Down
2 changes: 2 additions & 0 deletions substrate/frame/system/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},
BuildStorage, Perbill,
};

#[allow(unused_imports)]
#[frame_support::pallet]
mod module {
use frame_support::pallet_prelude::*;
Expand Down

0 comments on commit 1626c20

Please sign in to comment.