Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Kusama state version switch and migration. #7015

Merged
merged 11 commits into from
Jul 4, 2023
9 changes: 3 additions & 6 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1484,12 +1484,9 @@ impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations = (
migrations::V0940,
migrations::V0941,
migrations::V0942,
migrations::Unreleased,
);
pub type Migrations =
(migrations::V0940, migrations::V0941,
migrations::V0942, migrations::Unreleased);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am no fan of what rustfmt does here.
The list you had before is much more readable.

I would suggest adding #[rustfmt_skip] for this Migrations type as well as for Unreleased and keep one migration / version per line. That also helps with your comment about having this single migration in a release.


/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
Expand Down