style: Migrate to stable-only rustfmt configuration
- Remove nightly-only features from .rustfmt.toml and vendor/ss58-registry/rustfmt.toml - Removed features: imports_granularity, wrap_comments, comment_width, reorder_impl_items, spaces_around_ranges, binop_separator, match_arm_blocks, trailing_semicolon, trailing_comma - Format all 898 affected files with stable rustfmt - Ensures long-term reliability without nightly toolchain dependency
This commit is contained in:
@@ -213,13 +213,14 @@ where
|
||||
let max_messages_size_in_single_batch = P::TargetChain::max_extrinsic_size() / 3;
|
||||
let limits = match params.limits {
|
||||
Some(limits) => limits,
|
||||
None =>
|
||||
None => {
|
||||
select_delivery_transaction_limits_rpc(
|
||||
¶ms,
|
||||
P::TargetChain::max_extrinsic_weight(),
|
||||
P::SourceChain::MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX,
|
||||
)
|
||||
.await?,
|
||||
.await?
|
||||
},
|
||||
};
|
||||
let (max_messages_in_single_batch, max_messages_weight_in_single_batch) =
|
||||
(limits.max_messages_in_single_batch / 2, limits.max_messages_weight_in_single_batch / 2);
|
||||
@@ -706,8 +707,9 @@ mod tests {
|
||||
impl From<MockUtilityCall<RuntimeCall>> for RuntimeCall {
|
||||
fn from(value: MockUtilityCall<RuntimeCall>) -> RuntimeCall {
|
||||
match value {
|
||||
MockUtilityCall::batch_all(calls) =>
|
||||
RuntimeCall::Utility(UtilityCall::<RuntimeCall>::batch_all(calls)),
|
||||
MockUtilityCall::batch_all(calls) => {
|
||||
RuntimeCall::Utility(UtilityCall::<RuntimeCall>::batch_all(calls))
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,8 +197,9 @@ where
|
||||
let storage_value: Option<ParaStoredHeaderData> =
|
||||
self.target_client.storage_value(at_block.hash(), storage_key).await?;
|
||||
let para_head_number = match storage_value {
|
||||
Some(para_head_data) =>
|
||||
para_head_data.decode_teyrchain_head_data::<P::SourceTeyrchain>()?.number,
|
||||
Some(para_head_data) => {
|
||||
para_head_data.decode_teyrchain_head_data::<P::SourceTeyrchain>()?.number
|
||||
},
|
||||
None => return Ok(None),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user