From c967895aabe8880c8670155081e8d58a255d2134 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 19 Nov 2024 11:05:34 +0100 Subject: [PATCH] fmt --- polkadot-parachains/common/src/xcm_config.rs | 4 ++-- polkadot-parachains/integritee-kusama/src/migrations.rs | 4 ++-- polkadot-parachains/integritee-polkadot/src/migrations.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/polkadot-parachains/common/src/xcm_config.rs b/polkadot-parachains/common/src/xcm_config.rs index 4e020d3f..136556ca 100644 --- a/polkadot-parachains/common/src/xcm_config.rs +++ b/polkadot-parachains/common/src/xcm_config.rs @@ -40,7 +40,7 @@ where fn contains(asset: &Asset, origin: &Location) -> bool { if let Some(ref reserve) = ReserveProvider::reserve(asset) { if reserve == origin { - return true + return true; } } false @@ -61,7 +61,7 @@ where fn matches_fungible(a: &Asset) -> Option { if let (Fungible(ref amount), AssetId(location)) = (&a.fun, &a.id) { if CurrencyIdConvert::convert(location.clone()).is_some() { - return CheckedConversion::checked_from(*amount) + return CheckedConversion::checked_from(*amount); } } None diff --git a/polkadot-parachains/integritee-kusama/src/migrations.rs b/polkadot-parachains/integritee-kusama/src/migrations.rs index e2603988..32454c8a 100644 --- a/polkadot-parachains/integritee-kusama/src/migrations.rs +++ b/polkadot-parachains/integritee-kusama/src/migrations.rs @@ -102,7 +102,7 @@ pub mod scheduler { Expected version == 4, found {:?}", onchain_version, ); - return T::DbWeight::get().reads(1) + return T::DbWeight::get().reads(1); } log::info!(target: TARGET, "migrating from {:?} to 4, purging agenda", onchain_version); let purged_agendas = v1::Agenda::::clear(u32::MAX, None).unique as u64; @@ -193,7 +193,7 @@ pub mod collator_selection_init { let invulnerables_len = pallet_collator_selection::Invulnerables::::get().len(); if invulnerables_len > 0 { info!(target: TARGET, "no need to initialize invulnerables"); - return T::DbWeight::get().reads_writes(1, 0) + return T::DbWeight::get().reads_writes(1, 0); } info!(target: TARGET, "initializing the set of invulnerables"); diff --git a/polkadot-parachains/integritee-polkadot/src/migrations.rs b/polkadot-parachains/integritee-polkadot/src/migrations.rs index e2603988..32454c8a 100644 --- a/polkadot-parachains/integritee-polkadot/src/migrations.rs +++ b/polkadot-parachains/integritee-polkadot/src/migrations.rs @@ -102,7 +102,7 @@ pub mod scheduler { Expected version == 4, found {:?}", onchain_version, ); - return T::DbWeight::get().reads(1) + return T::DbWeight::get().reads(1); } log::info!(target: TARGET, "migrating from {:?} to 4, purging agenda", onchain_version); let purged_agendas = v1::Agenda::::clear(u32::MAX, None).unique as u64; @@ -193,7 +193,7 @@ pub mod collator_selection_init { let invulnerables_len = pallet_collator_selection::Invulnerables::::get().len(); if invulnerables_len > 0 { info!(target: TARGET, "no need to initialize invulnerables"); - return T::DbWeight::get().reads_writes(1, 0) + return T::DbWeight::get().reads_writes(1, 0); } info!(target: TARGET, "initializing the set of invulnerables");