mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-15 17:01:01 +00:00
clippy fmt
This commit is contained in:
@@ -2,10 +2,7 @@
|
|||||||
use frame_support::weights::Weight;
|
use frame_support::weights::Weight;
|
||||||
use parachain_template_runtime::{BuildStorage, Runtime, System};
|
use parachain_template_runtime::{BuildStorage, Runtime, System};
|
||||||
|
|
||||||
pub fn run_with_system_weight<F>(w: Weight, mut assertions: F)
|
pub fn run_with_system_weight<F: FnMut()>(w: Weight, mut assertions: F) {
|
||||||
where
|
|
||||||
F: FnMut() -> (),
|
|
||||||
{
|
|
||||||
let mut t: sp_io::TestExternalities =
|
let mut t: sp_io::TestExternalities =
|
||||||
frame_system::GenesisConfig::<Runtime>::default().build_storage().unwrap().into();
|
frame_system::GenesisConfig::<Runtime>::default().build_storage().unwrap().into();
|
||||||
t.execute_with(|| {
|
t.execute_with(|| {
|
||||||
|
|||||||
Reference in New Issue
Block a user