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:
@@ -109,8 +109,9 @@ where
|
||||
calls.next().transpose()?.and_then(|c| c.submit_finality_proof_info());
|
||||
|
||||
Ok(match (total_calls, relay_finality_call, msgs_call) {
|
||||
(2, Some(relay_finality_call), Some(msgs_call)) =>
|
||||
Some(ExtensionCallInfo::RelayFinalityAndMsgs(relay_finality_call, msgs_call)),
|
||||
(2, Some(relay_finality_call), Some(msgs_call)) => {
|
||||
Some(ExtensionCallInfo::RelayFinalityAndMsgs(relay_finality_call, msgs_call))
|
||||
},
|
||||
(1, None, Some(msgs_call)) => Some(ExtensionCallInfo::Msgs(msgs_call)),
|
||||
_ => None,
|
||||
})
|
||||
@@ -129,8 +130,8 @@ where
|
||||
call_data: &mut ExtensionCallData,
|
||||
relayer: &R::AccountId,
|
||||
) -> bool {
|
||||
verify_submit_finality_proof_succeeded::<Self, GI>(call_info, call_data, relayer) &&
|
||||
verify_messages_call_succeeded::<Self>(call_info, call_data, relayer)
|
||||
verify_submit_finality_proof_succeeded::<Self, GI>(call_info, call_data, relayer)
|
||||
&& verify_messages_call_succeeded::<Self>(call_info, call_data, relayer)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -407,11 +407,12 @@ where
|
||||
"Has registered reward"
|
||||
);
|
||||
},
|
||||
RelayerAccountAction::Slash(relayer, slash_account) =>
|
||||
RelayerAccountAction::Slash(relayer, slash_account) => {
|
||||
RelayersPallet::<R, C::BridgeRelayersPalletInstance>::slash_and_deregister(
|
||||
&relayer,
|
||||
ExplicitOrAccountParams::Params(slash_account),
|
||||
),
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
Ok(Weight::zero())
|
||||
@@ -676,8 +677,8 @@ mod tests {
|
||||
test_lane_id(),
|
||||
)
|
||||
.unwrap()
|
||||
.last_delivered_nonce() +
|
||||
1,
|
||||
.last_delivered_nonce()
|
||||
+ 1,
|
||||
nonces_end: best_message,
|
||||
}),
|
||||
messages_count: 1,
|
||||
|
||||
@@ -98,9 +98,9 @@ mod integrity_tests {
|
||||
let priority_with_tip = estimate_priority(1, tip);
|
||||
|
||||
const ERROR_MARGIN: TransactionPriority = 5; // 5%
|
||||
if priority_with_boost.abs_diff(priority_with_tip).saturating_mul(100) /
|
||||
priority_with_tip >
|
||||
ERROR_MARGIN
|
||||
if priority_with_boost.abs_diff(priority_with_tip).saturating_mul(100)
|
||||
/ priority_with_tip
|
||||
> ERROR_MARGIN
|
||||
{
|
||||
panic!(
|
||||
"The {param_name} value ({}) must be fixed to: {}",
|
||||
|
||||
@@ -122,14 +122,16 @@ where
|
||||
let relay_finality_call =
|
||||
calls.next().transpose()?.and_then(|c| c.submit_finality_proof_info());
|
||||
Ok(match (total_calls, relay_finality_call, para_finality_call, msgs_call) {
|
||||
(3, Some(relay_finality_call), Some(para_finality_call), Some(msgs_call)) =>
|
||||
(3, Some(relay_finality_call), Some(para_finality_call), Some(msgs_call)) => {
|
||||
Some(ExtensionCallInfo::AllFinalityAndMsgs(
|
||||
relay_finality_call,
|
||||
para_finality_call,
|
||||
msgs_call,
|
||||
)),
|
||||
(2, None, Some(para_finality_call), Some(msgs_call)) =>
|
||||
Some(ExtensionCallInfo::TeyrchainFinalityAndMsgs(para_finality_call, msgs_call)),
|
||||
))
|
||||
},
|
||||
(2, None, Some(para_finality_call), Some(msgs_call)) => {
|
||||
Some(ExtensionCallInfo::TeyrchainFinalityAndMsgs(para_finality_call, msgs_call))
|
||||
},
|
||||
(1, None, None, Some(msgs_call)) => Some(ExtensionCallInfo::Msgs(msgs_call)),
|
||||
_ => None,
|
||||
})
|
||||
@@ -151,8 +153,8 @@ where
|
||||
) -> bool {
|
||||
verify_submit_finality_proof_succeeded::<Self, R::BridgesGrandpaPalletInstance>(
|
||||
call_info, call_data, relayer,
|
||||
) && verify_submit_teyrchain_head_succeeded::<Self, PI>(call_info, call_data, relayer) &&
|
||||
verify_messages_call_succeeded::<Self>(call_info, call_data, relayer)
|
||||
) && verify_submit_teyrchain_head_succeeded::<Self, PI>(call_info, call_data, relayer)
|
||||
&& verify_messages_call_succeeded::<Self>(call_info, call_data, relayer)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -381,8 +381,8 @@ impl MessageDispatch for DummyMessageDispatch {
|
||||
type LaneId = TestLaneIdType;
|
||||
|
||||
fn is_active(lane: Self::LaneId) -> bool {
|
||||
pezframe_support::storage::unhashed::take::<bool>(&(b"inactive", lane).encode()[..]) !=
|
||||
Some(false)
|
||||
pezframe_support::storage::unhashed::take::<bool>(&(b"inactive", lane).encode()[..])
|
||||
!= Some(false)
|
||||
}
|
||||
|
||||
fn dispatch_weight(
|
||||
|
||||
Reference in New Issue
Block a user