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:
@@ -254,8 +254,8 @@ where
|
||||
let diff = Multiplier::saturating_from_rational(diff_abs, max_limiting_dimension.max(1));
|
||||
let diff_squared = diff.saturating_mul(diff);
|
||||
|
||||
let v_squared_2 = adjustment_variable.saturating_mul(adjustment_variable) /
|
||||
Multiplier::saturating_from_integer(2);
|
||||
let v_squared_2 = adjustment_variable.saturating_mul(adjustment_variable)
|
||||
/ Multiplier::saturating_from_integer(2);
|
||||
|
||||
let first_term = adjustment_variable.saturating_mul(diff);
|
||||
let second_term = v_squared_2.saturating_mul(diff_squared);
|
||||
@@ -475,15 +475,15 @@ pub mod pezpallet {
|
||||
// at most be maximum block weight. Make sure that this can fit in a multiplier without
|
||||
// loss.
|
||||
assert!(
|
||||
<Multiplier as pezsp_runtime::traits::Bounded>::max_value() >=
|
||||
Multiplier::checked_from_integer::<u128>(
|
||||
<Multiplier as pezsp_runtime::traits::Bounded>::max_value()
|
||||
>= Multiplier::checked_from_integer::<u128>(
|
||||
T::BlockWeights::get().max_block.ref_time().try_into().unwrap()
|
||||
)
|
||||
.unwrap(),
|
||||
);
|
||||
|
||||
let target = T::FeeMultiplierUpdate::target() *
|
||||
T::BlockWeights::get().get(DispatchClass::Normal).max_total.expect(
|
||||
let target = T::FeeMultiplierUpdate::target()
|
||||
* T::BlockWeights::get().get(DispatchClass::Normal).max_total.expect(
|
||||
"Setting `max_total` for `Normal` dispatch class is not compatible with \
|
||||
`transaction-payment` pezpallet.",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user