diff --git a/pallets/parachain-system/src/migration.rs b/pallets/parachain-system/src/migration.rs
index 8ada834585bd..e3d1e11a51b0 100644
--- a/pallets/parachain-system/src/migration.rs
+++ b/pallets/parachain-system/src/migration.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-use crate::{Config, Pallet, ReservedDmpWeightOverride, ReservedXcmpWeightOverride };
+use crate::{Config, Pallet, ReservedDmpWeightOverride, ReservedXcmpWeightOverride};
use frame_support::{
traits::{Get, StorageVersion},
weights::Weight,
@@ -52,18 +52,14 @@ mod v2 {
pub fn migrate() -> Weight {
let translate = |pre: u64| -> Weight { Weight::from_parts(pre, DEFAULT_POV_SIZE) };
- if ReservedXcmpWeightOverride::::translate(|pre| pre.map(translate))
- .is_err()
- {
+ if ReservedXcmpWeightOverride::::translate(|pre| pre.map(translate)).is_err() {
log::error!(
target: "parachain_system",
"unexpected error when performing translation of the ReservedXcmpWeightOverride type during storage upgrade to v2"
);
}
- if ReservedDmpWeightOverride::::translate(|pre| pre.map(translate))
- .is_err()
- {
+ if ReservedDmpWeightOverride::::translate(|pre| pre.map(translate)).is_err() {
log::error!(
target: "parachain_system",
"unexpected error when performing translation of the ReservedDmpWeightOverride type during storage upgrade to v2"
diff --git a/pallets/xcmp-queue/src/migration.rs b/pallets/xcmp-queue/src/migration.rs
index 0c324f581e95..f6ece1da1a84 100644
--- a/pallets/xcmp-queue/src/migration.rs
+++ b/pallets/xcmp-queue/src/migration.rs
@@ -16,7 +16,7 @@
//! A module that is responsible for migration of storage.
-use crate::{Config, Pallet, Overweight, QueueConfig, DEFAULT_POV_SIZE};
+use crate::{Config, Overweight, Pallet, QueueConfig, DEFAULT_POV_SIZE};
use frame_support::{
pallet_prelude::*,
traits::StorageVersion,