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:
@@ -66,8 +66,8 @@ fn setup_bounty<T: Config>(
|
||||
let caller = account("caller", user, SEED);
|
||||
let value: BalanceOf<T> = T::BountyValueMinimum::get().saturating_mul(100u32.into());
|
||||
let fee = value / 2u32.into();
|
||||
let deposit = T::BountyDepositBase::get() +
|
||||
T::DataDepositPerByte::get() * T::MaximumReasonLength::get().into();
|
||||
let deposit = T::BountyDepositBase::get()
|
||||
+ T::DataDepositPerByte::get() * T::MaximumReasonLength::get().into();
|
||||
let _ = T::Currency::make_free_balance_be(&caller, deposit + T::Currency::minimum_balance());
|
||||
let curator = account("curator", user, SEED);
|
||||
let _ = T::Currency::make_free_balance_be(
|
||||
|
||||
@@ -288,8 +288,8 @@ pub mod pezpallet {
|
||||
description.try_into().map_err(|_| BountiesError::<T>::ReasonTooBig)?;
|
||||
ensure!(value >= T::ChildBountyValueMinimum::get(), BountiesError::<T>::InvalidValue);
|
||||
ensure!(
|
||||
ParentChildBounties::<T>::get(parent_bounty_id) <=
|
||||
T::MaxActiveChildBountyCount::get() as u32,
|
||||
ParentChildBounties::<T>::get(parent_bounty_id)
|
||||
<= T::MaxActiveChildBountyCount::get() as u32,
|
||||
Error::<T>::TooManyChildBounties,
|
||||
);
|
||||
|
||||
@@ -536,8 +536,8 @@ pub mod pezpallet {
|
||||
// child-bounty curator can unassign the child-bounty curator.
|
||||
ensure!(
|
||||
maybe_sender.map_or(true, |sender| {
|
||||
sender == *curator ||
|
||||
Self::ensure_bounty_active(parent_bounty_id)
|
||||
sender == *curator
|
||||
|| Self::ensure_bounty_active(parent_bounty_id)
|
||||
.map_or(false, |(parent_curator, _)| {
|
||||
sender == parent_curator
|
||||
})
|
||||
@@ -566,8 +566,8 @@ pub mod pezpallet {
|
||||
Some(sender) => {
|
||||
let (parent_curator, update_due) =
|
||||
Self::ensure_bounty_active(parent_bounty_id)?;
|
||||
if sender == parent_curator ||
|
||||
update_due < Self::treasury_block_number()
|
||||
if sender == parent_curator
|
||||
|| update_due < Self::treasury_block_number()
|
||||
{
|
||||
// Slash the child-bounty curator if
|
||||
// + the call is made by the parent bounty curator.
|
||||
@@ -646,8 +646,8 @@ pub mod pezpallet {
|
||||
child_bounty.status = ChildBountyStatus::PendingPayout {
|
||||
curator: signer,
|
||||
beneficiary: beneficiary.clone(),
|
||||
unlock_at: Self::treasury_block_number() +
|
||||
T::BountyDepositPayoutDelay::get(),
|
||||
unlock_at: Self::treasury_block_number()
|
||||
+ T::BountyDepositPayoutDelay::get(),
|
||||
};
|
||||
Ok(())
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user