diff --git a/bridges/relays/lib-substrate-relay/src/on_demand/parachains.rs b/bridges/relays/lib-substrate-relay/src/on_demand/parachains.rs
index 9981a4d90b71..4579222a2c68 100644
--- a/bridges/relays/lib-substrate-relay/src/on_demand/parachains.rs
+++ b/bridges/relays/lib-substrate-relay/src/on_demand/parachains.rs
@@ -664,8 +664,7 @@ impl<'a, P: SubstrateParachainsPipeline, SourceRelayClnt, TargetClnt>
for (
&'a OnDemandParachainsRelay
,
&'a ParachainsSource
,
- )
-where
+ ) where
SourceRelayClnt: Client,
TargetClnt: Client,
{
diff --git a/bridges/relays/messages/src/message_race_strategy.rs b/bridges/relays/messages/src/message_race_strategy.rs
index 1303fcfedebd..3a532331d79d 100644
--- a/bridges/relays/messages/src/message_race_strategy.rs
+++ b/bridges/relays/messages/src/message_race_strategy.rs
@@ -67,8 +67,7 @@ impl<
TargetHeaderHash,
SourceNoncesRange,
Proof,
- >
-where
+ > where
SourceHeaderHash: Clone,
SourceHeaderNumber: Clone + Ord,
SourceNoncesRange: NoncesRange,
@@ -190,8 +189,7 @@ impl<
TargetHeaderHash,
SourceNoncesRange,
Proof,
- >
-where
+ > where
SourceHeaderHash: Clone + Debug + Send + Sync,
SourceHeaderNumber: Clone + Ord + Debug + Send + Sync,
SourceNoncesRange: NoncesRange + Debug + Send + Sync,
diff --git a/bridges/snowbridge/primitives/router/src/inbound/mod.rs b/bridges/snowbridge/primitives/router/src/inbound/mod.rs
index 4179e8b37a42..54e47a7a8b6a 100644
--- a/bridges/snowbridge/primitives/router/src/inbound/mod.rs
+++ b/bridges/snowbridge/primitives/router/src/inbound/mod.rs
@@ -128,8 +128,7 @@ impl
-where
+ > where
CreateAssetCall: Get,
CreateAssetDeposit: Get,
InboundQueuePalletInstance: Get,
diff --git a/bridges/snowbridge/runtime/runtime-common/src/lib.rs b/bridges/snowbridge/runtime/runtime-common/src/lib.rs
index 0b1a74b232a0..aae45520ff4b 100644
--- a/bridges/snowbridge/runtime/runtime-common/src/lib.rs
+++ b/bridges/snowbridge/runtime/runtime-common/src/lib.rs
@@ -50,8 +50,7 @@ impl
-where
+ > where
Balance: BaseArithmetic + Unsigned + Copy + From + Into + Debug,
AccountId: Clone + FullCodec,
FeeAssetLocation: Get,
diff --git a/cumulus/pallets/parachain-system/src/lib.rs b/cumulus/pallets/parachain-system/src/lib.rs
index 6c299c376f07..6f8adaa461c5 100644
--- a/cumulus/pallets/parachain-system/src/lib.rs
+++ b/cumulus/pallets/parachain-system/src/lib.rs
@@ -369,8 +369,7 @@ pub mod pallet {
let maximum_channels = host_config
.hrmp_max_message_num_per_candidate
- .min(>::take())
- as usize;
+ .min(>::take()) as usize;
// Note: this internally calls the `GetChannelInfo` implementation for this
// pallet, which draws on the `RelevantMessagingState`. That in turn has
diff --git a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/tests/teleport.rs b/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/tests/teleport.rs
index 72c6ef0fc138..f74378d7631a 100644
--- a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/tests/teleport.rs
+++ b/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-rococo/src/tests/teleport.rs
@@ -302,9 +302,7 @@ fn limited_teleport_native_assets_from_relay_to_system_para_works() {
let delivery_fees = Rococo::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
let sender_balance_after = test.sender.balance;
@@ -351,9 +349,7 @@ fn limited_teleport_native_assets_back_from_system_para_to_relay_works() {
let delivery_fees = AssetHubRococo::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
@@ -394,9 +390,7 @@ fn limited_teleport_native_assets_from_system_para_to_relay_fails() {
let delivery_fees = AssetHubRococo::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
diff --git a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/teleport.rs b/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/teleport.rs
index f5ebbb6b8074..a524b87b2daf 100644
--- a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/teleport.rs
+++ b/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/teleport.rs
@@ -302,9 +302,7 @@ fn limited_teleport_native_assets_from_relay_to_system_para_works() {
let delivery_fees = Westend::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
let sender_balance_after = test.sender.balance;
@@ -351,9 +349,7 @@ fn limited_teleport_native_assets_back_from_system_para_to_relay_works() {
let delivery_fees = AssetHubWestend::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
@@ -394,9 +390,7 @@ fn limited_teleport_native_assets_from_system_para_to_relay_fails() {
let delivery_fees = AssetHubWestend::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
diff --git a/cumulus/parachains/integration-tests/emulated/tests/people/people-rococo/src/tests/teleport.rs b/cumulus/parachains/integration-tests/emulated/tests/people/people-rococo/src/tests/teleport.rs
index f1070ecfa0e8..4410d1bd40dc 100644
--- a/cumulus/parachains/integration-tests/emulated/tests/people/people-rococo/src/tests/teleport.rs
+++ b/cumulus/parachains/integration-tests/emulated/tests/people/people-rococo/src/tests/teleport.rs
@@ -155,9 +155,7 @@ fn limited_teleport_native_assets_from_relay_to_system_para_works() {
let delivery_fees = Rococo::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
let sender_balance_after = test.sender.balance;
@@ -206,9 +204,7 @@ fn limited_teleport_native_assets_back_from_system_para_to_relay_works() {
let delivery_fees = PeopleRococo::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
@@ -252,9 +248,7 @@ fn limited_teleport_native_assets_from_system_para_to_relay_fails() {
let delivery_fees = PeopleRococo::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
diff --git a/cumulus/parachains/integration-tests/emulated/tests/people/people-westend/src/tests/teleport.rs b/cumulus/parachains/integration-tests/emulated/tests/people/people-westend/src/tests/teleport.rs
index f22261d9a9e9..6fd3cdeb61fb 100644
--- a/cumulus/parachains/integration-tests/emulated/tests/people/people-westend/src/tests/teleport.rs
+++ b/cumulus/parachains/integration-tests/emulated/tests/people/people-westend/src/tests/teleport.rs
@@ -155,9 +155,7 @@ fn limited_teleport_native_assets_from_relay_to_system_para_works() {
let delivery_fees = Westend::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
let sender_balance_after = test.sender.balance;
@@ -206,9 +204,7 @@ fn limited_teleport_native_assets_back_from_system_para_to_relay_works() {
let delivery_fees = PeopleWestend::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
@@ -252,9 +248,7 @@ fn limited_teleport_native_assets_from_system_para_to_relay_fails() {
let delivery_fees = PeopleWestend::execute_with(|| {
xcm_helpers::teleport_assets_delivery_fees::<
::XcmSender,
- >(
- test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest
- )
+ >(test.args.assets.clone(), 0, test.args.weight_limit, test.args.beneficiary, test.args.dest)
});
// Sender's balance is reduced
diff --git a/cumulus/parachains/runtimes/assets/test-utils/src/test_cases.rs b/cumulus/parachains/runtimes/assets/test-utils/src/test_cases.rs
index 4f45bd76cc23..884b71369e79 100644
--- a/cumulus/parachains/runtimes/assets/test-utils/src/test_cases.rs
+++ b/cumulus/parachains/runtimes/assets/test-utils/src/test_cases.rs
@@ -1146,8 +1146,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_parachain_assets_wor
.with_balances(vec![(
foreign_creator_as_account_id.clone(),
existential_deposit +
- asset_deposit +
- metadata_deposit_base +
+ asset_deposit + metadata_deposit_base +
metadata_deposit_per_byte_eta +
buy_execution_fee_amount.into() +
buy_execution_fee_amount.into(),
diff --git a/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs b/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs
index e1e0e1c8029f..bc1c7ec5e032 100644
--- a/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs
+++ b/cumulus/parachains/runtimes/bridge-hubs/test-utils/src/test_cases/mod.rs
@@ -495,12 +495,11 @@ pub fn message_dispatch_routing_works<
// 2. this message is sent from other global consensus with destination of this Runtime
// sibling parachain (HRMP)
- let bridging_message =
- test_data::simulate_message_exporter_on_bridged_chain::<
- BridgedNetwork,
- NetworkWithParentCount,
- AlwaysLatest,
- >((RuntimeNetwork::get(), [Parachain(sibling_parachain_id)].into()));
+ let bridging_message = test_data::simulate_message_exporter_on_bridged_chain::<
+ BridgedNetwork,
+ NetworkWithParentCount,
+ AlwaysLatest,
+ >((RuntimeNetwork::get(), [Parachain(sibling_parachain_id)].into()));
// 2.1. WITHOUT opened hrmp channel -> RoutingError
let result =
diff --git a/cumulus/primitives/utility/src/lib.rs b/cumulus/primitives/utility/src/lib.rs
index 3bf96a6da887..760a0c41493e 100644
--- a/cumulus/primitives/utility/src/lib.rs
+++ b/cumulus/primitives/utility/src/lib.rs
@@ -385,8 +385,7 @@ impl<
FungiblesAssetMatcher,
OnUnbalanced,
AccountId,
- >
-where
+ > where
Fungibles::Balance: Into,
{
fn new() -> Self {
@@ -529,8 +528,7 @@ impl<
FungiblesAssetMatcher,
OnUnbalanced,
AccountId,
- >
-where
+ > where
Fungibles::Balance: Into,
{
fn drop(&mut self) {
diff --git a/polkadot/node/core/approval-voting/src/lib.rs b/polkadot/node/core/approval-voting/src/lib.rs
index 15ead9c198a0..d4b6855a44d0 100644
--- a/polkadot/node/core/approval-voting/src/lib.rs
+++ b/polkadot/node/core/approval-voting/src/lib.rs
@@ -2384,12 +2384,7 @@ fn schedule_wakeup_action(
last_assignment_tick.map(|l| l + APPROVAL_DELAY).filter(|t| t > &tick_now),
next_no_show,
)
- .map(|tick| Action::ScheduleWakeup {
- block_hash,
- block_number,
- candidate_hash,
- tick,
- })
+ .map(|tick| Action::ScheduleWakeup { block_hash, block_number, candidate_hash, tick })
},
RequiredTranches::Pending { considered, next_no_show, clock_drift, .. } => {
// select the minimum of `next_no_show`, or the tick of the next non-empty tranche
diff --git a/polkadot/node/core/approval-voting/src/tests.rs b/polkadot/node/core/approval-voting/src/tests.rs
index 1bbb1e0da211..64ae86bc013a 100644
--- a/polkadot/node/core/approval-voting/src/tests.rs
+++ b/polkadot/node/core/approval-voting/src/tests.rs
@@ -262,8 +262,7 @@ where
_relay_vrf_story: polkadot_node_primitives::approval::v1::RelayVRFStory,
_assignment: &polkadot_node_primitives::approval::v2::AssignmentCertV2,
_backing_groups: Vec,
- ) -> Result
- {
+ ) -> Result {
self.1(validator_index)
}
}
diff --git a/polkadot/node/core/pvf/common/src/worker/security/change_root.rs b/polkadot/node/core/pvf/common/src/worker/security/change_root.rs
index fcfaf6541c29..9ec66906819f 100644
--- a/polkadot/node/core/pvf/common/src/worker/security/change_root.rs
+++ b/polkadot/node/core/pvf/common/src/worker/security/change_root.rs
@@ -124,8 +124,7 @@ fn try_restrict(worker_info: &WorkerInfo) -> Result<()> {
libc::MS_BIND |
libc::MS_REC | libc::MS_NOEXEC |
libc::MS_NODEV | libc::MS_NOSUID |
- libc::MS_NOATIME |
- additional_flags,
+ libc::MS_NOATIME | additional_flags,
ptr::null(), // ignored when MS_BIND is used
) < 0
{
diff --git a/polkadot/node/network/availability-recovery/src/task/strategy/chunks.rs b/polkadot/node/network/availability-recovery/src/task/strategy/chunks.rs
index f4bb8b925059..b6376a5b543e 100644
--- a/polkadot/node/network/availability-recovery/src/task/strategy/chunks.rs
+++ b/polkadot/node/network/availability-recovery/src/task/strategy/chunks.rs
@@ -107,10 +107,9 @@ impl FetchChunks {
state: &mut State,
common_params: &RecoveryParams,
) -> Result {
- let recovery_duration =
- common_params
- .metrics
- .time_erasure_recovery(RecoveryStrategy::::strategy_type(self));
+ let recovery_duration = common_params
+ .metrics
+ .time_erasure_recovery(RecoveryStrategy::::strategy_type(self));
// Send request to reconstruct available data from chunks.
let (avilable_data_tx, available_data_rx) = oneshot::channel();
diff --git a/polkadot/node/overseer/Cargo.toml b/polkadot/node/overseer/Cargo.toml
index 14db9514201a..c1dc0e9c8437 100644
--- a/polkadot/node/overseer/Cargo.toml
+++ b/polkadot/node/overseer/Cargo.toml
@@ -50,5 +50,5 @@ tikv-jemalloc-ctl = "0.5.0"
[features]
default = ["futures_channel"]
expand = ["orchestra/expand"]
-futures_channel = ["orchestra/futures_channel"]
+futures_channel = [ "orchestra/futures_channel"]
jemalloc-allocator = ["dep:tikv-jemalloc-ctl"]
diff --git a/polkadot/node/subsystem-bench/src/lib/statement/mod.rs b/polkadot/node/subsystem-bench/src/lib/statement/mod.rs
index 8cb7eee22b2d..bd47505f56ae 100644
--- a/polkadot/node/subsystem-bench/src/lib/statement/mod.rs
+++ b/polkadot/node/subsystem-bench/src/lib/statement/mod.rs
@@ -114,14 +114,14 @@ fn build_overseer(
state.pvd.clone(),
state.own_backing_group.clone(),
);
- let (statement_req_receiver, statement_req_cfg) =
- IncomingRequest::get_config_receiver::>(
- &ReqProtocolNames::new(GENESIS_HASH, None),
- );
- let (candidate_req_receiver, candidate_req_cfg) =
- IncomingRequest::get_config_receiver::>(
- &ReqProtocolNames::new(GENESIS_HASH, None),
- );
+ let (statement_req_receiver, statement_req_cfg) = IncomingRequest::get_config_receiver::<
+ Block,
+ sc_network::NetworkWorker,
+ >(&ReqProtocolNames::new(GENESIS_HASH, None));
+ let (candidate_req_receiver, candidate_req_cfg) = IncomingRequest::get_config_receiver::<
+ Block,
+ sc_network::NetworkWorker,
+ >(&ReqProtocolNames::new(GENESIS_HASH, None));
let keystore = make_keystore();
let subsystem = StatementDistributionSubsystem::new(
keystore.clone(),
diff --git a/polkadot/node/subsystem-types/src/runtime_client.rs b/polkadot/node/subsystem-types/src/runtime_client.rs
index 5831ca32f389..e5e1e4d24ef9 100644
--- a/polkadot/node/subsystem-types/src/runtime_client.rs
+++ b/polkadot/node/subsystem-types/src/runtime_client.rs
@@ -643,8 +643,7 @@ where
fn number(
&self,
hash: Block::Hash,
- ) -> sc_client_api::blockchain::Result