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:
@@ -687,8 +687,8 @@ where
|
||||
// Check that `parent_hash` is correct.
|
||||
let n = *header.number();
|
||||
assert!(
|
||||
n > BlockNumberFor::<System>::zero() &&
|
||||
<pezframe_system::Pezpallet<System>>::block_hash(
|
||||
n > BlockNumberFor::<System>::zero()
|
||||
&& <pezframe_system::Pezpallet<System>>::block_hash(
|
||||
n - BlockNumberFor::<System>::one()
|
||||
) == *header.parent_hash(),
|
||||
"Parent hash should be valid.",
|
||||
|
||||
@@ -270,9 +270,9 @@ mod custom2 {
|
||||
// Inherent call is accepted for being dispatched
|
||||
fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError> {
|
||||
match call {
|
||||
Call::allowed_unsigned { .. } |
|
||||
Call::optional_inherent { .. } |
|
||||
Call::inherent { .. } => Ok(()),
|
||||
Call::allowed_unsigned { .. }
|
||||
| Call::optional_inherent { .. }
|
||||
| Call::inherent { .. } => Ok(()),
|
||||
_ => Err(UnknownTransaction::NoUnsignedValidator.into()),
|
||||
}
|
||||
}
|
||||
@@ -607,8 +607,8 @@ fn balance_transfer_dispatch_works() {
|
||||
.assimilate_storage(&mut t)
|
||||
.unwrap();
|
||||
let xt = UncheckedXt::new_signed(call_transfer(2, 69), 1, 1.into(), tx_ext(0, 0));
|
||||
let weight = xt.get_dispatch_info().total_weight() +
|
||||
<Runtime as pezframe_system::Config>::BlockWeights::get()
|
||||
let weight = xt.get_dispatch_info().total_weight()
|
||||
+ <Runtime as pezframe_system::Config>::BlockWeights::get()
|
||||
.get(DispatchClass::Normal)
|
||||
.base_extrinsic;
|
||||
let fee: Balance =
|
||||
@@ -786,8 +786,8 @@ fn block_weight_limit_enforced() {
|
||||
// + extension weight
|
||||
// + extrinsic len
|
||||
Weight::from_parts(
|
||||
(transfer_weight.ref_time() + extension_weight.ref_time() + 5) *
|
||||
(nonce + 1),
|
||||
(transfer_weight.ref_time() + extension_weight.ref_time() + 5)
|
||||
* (nonce + 1),
|
||||
(nonce + 1) * encoded_len
|
||||
) + base_block_weight,
|
||||
);
|
||||
@@ -828,8 +828,8 @@ fn block_weight_and_size_is_stored_per_tx() {
|
||||
let mut t = new_test_ext(2);
|
||||
t.execute_with(|| {
|
||||
// Block execution weight + on_initialize weight from custom module
|
||||
let base_block_weight = Weight::from_parts(175, 0) +
|
||||
<Runtime as pezframe_system::Config>::BlockWeights::get().base_block;
|
||||
let base_block_weight = Weight::from_parts(175, 0)
|
||||
+ <Runtime as pezframe_system::Config>::BlockWeights::get().base_block;
|
||||
|
||||
Executive::initialize_block(&Header::new_from_number(1));
|
||||
|
||||
@@ -843,9 +843,9 @@ fn block_weight_and_size_is_stored_per_tx() {
|
||||
assert!(Executive::apply_extrinsic(x1.clone()).unwrap().is_ok());
|
||||
assert!(Executive::apply_extrinsic(x2.clone()).unwrap().is_ok());
|
||||
|
||||
let extrinsic_weight = transfer_weight +
|
||||
extension_weight +
|
||||
<Runtime as pezframe_system::Config>::BlockWeights::get()
|
||||
let extrinsic_weight = transfer_weight
|
||||
+ extension_weight
|
||||
+ <Runtime as pezframe_system::Config>::BlockWeights::get()
|
||||
.get(DispatchClass::Normal)
|
||||
.base_extrinsic;
|
||||
// Check we account for all extrinsic weight and their len.
|
||||
|
||||
Reference in New Issue
Block a user