Skip to content

Commit

Permalink
fix: unwanted nesting + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Aug 9, 2024
1 parent 13451f5 commit c87eba6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
14 changes: 4 additions & 10 deletions runtime/altair/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,10 @@ pub type UpgradeAltair1401 = (
frame_support::migrations::VersionedMigration<
0,
1,
frame_support::migrations::VersionedMigration<
0,
1,
runtime_common::migrations::permissions_v1::Migration<
Runtime,
crate::MinDelay,
crate::MaxTranches,
>,
pallet_permissions::Pallet<Runtime>,
<Runtime as frame_system::Config>::DbWeight,
runtime_common::migrations::permissions_v1::Migration<
Runtime,
crate::MinDelay,
crate::MaxTranches,
>,
pallet_permissions::Pallet<Runtime>,
<Runtime as frame_system::Config>::DbWeight,
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/migrations/permissions_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ where
MaxTranches,
>,
_,
>(|role| Some(role.migrate().into()));
>(|role| Some(role.migrate()));

log::info!("{LOG_PREFIX}: Migrated {writes} permissions!");

Expand Down
14 changes: 4 additions & 10 deletions runtime/development/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,10 @@ pub type UpgradeDevelopment1401 = (
frame_support::migrations::VersionedMigration<
0,
1,
frame_support::migrations::VersionedMigration<
0,
1,
runtime_common::migrations::permissions_v1::Migration<
Runtime,
crate::MinDelay,
crate::MaxTranches,
>,
pallet_permissions::Pallet<Runtime>,
<Runtime as frame_system::Config>::DbWeight,
runtime_common::migrations::permissions_v1::Migration<
Runtime,
crate::MinDelay,
crate::MaxTranches,
>,
pallet_permissions::Pallet<Runtime>,
<Runtime as frame_system::Config>::DbWeight,
Expand Down

0 comments on commit c87eba6

Please sign in to comment.