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:
@@ -703,8 +703,8 @@ impl<T: Config> Pezpallet<T> {
|
||||
};
|
||||
|
||||
debug_assert!(
|
||||
locked_now > Zero::zero() && schedules.len() > 0 ||
|
||||
locked_now == Zero::zero() && schedules.len() == 0
|
||||
locked_now > Zero::zero() && schedules.len() > 0
|
||||
|| locked_now == Zero::zero() && schedules.len() == 0
|
||||
);
|
||||
|
||||
Ok((schedules, locked_now))
|
||||
|
||||
@@ -1156,16 +1156,16 @@ fn vested_transfer_less_than_existential_deposit_fails() {
|
||||
ExtBuilder::default().existential_deposit(4 * ED).build().execute_with(|| {
|
||||
// MinVestedTransfer is less the ED.
|
||||
assert!(
|
||||
<Test as Config>::Currency::minimum_balance() >
|
||||
<Test as Config>::MinVestedTransfer::get()
|
||||
<Test as Config>::Currency::minimum_balance()
|
||||
> <Test as Config>::MinVestedTransfer::get()
|
||||
);
|
||||
|
||||
let sched =
|
||||
VestingInfo::new(<Test as Config>::MinVestedTransfer::get() as u64, 1u64, 10u64);
|
||||
// The new account balance with the schedule's locked amount would be less than ED.
|
||||
assert!(
|
||||
Balances::free_balance(&99) + sched.locked() <
|
||||
<Test as Config>::Currency::minimum_balance()
|
||||
Balances::free_balance(&99) + sched.locked()
|
||||
< <Test as Config>::Currency::minimum_balance()
|
||||
);
|
||||
|
||||
// vested_transfer fails.
|
||||
|
||||
@@ -110,8 +110,8 @@ where
|
||||
// the block after starting.
|
||||
One::one()
|
||||
} else {
|
||||
self.locked / self.per_block() +
|
||||
if (self.locked % self.per_block()).is_zero() {
|
||||
self.locked / self.per_block()
|
||||
+ if (self.locked % self.per_block()).is_zero() {
|
||||
Zero::zero()
|
||||
} else {
|
||||
// `per_block` does not perfectly divide `locked`, so we need an extra block to
|
||||
|
||||
Reference in New Issue
Block a user