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:
@@ -140,10 +140,12 @@ impl<
|
||||
// Check we handle this asset
|
||||
let amount = Matcher::matches_fungible(what).ok_or(MatchError::AssetNotHandled)?;
|
||||
match CheckingAccount::get() {
|
||||
Some((checking_account, MintLocation::Local)) =>
|
||||
Self::can_reduce_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::NonLocal)) =>
|
||||
Self::can_accrue_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::Local)) => {
|
||||
Self::can_reduce_checked(checking_account, amount)
|
||||
},
|
||||
Some((checking_account, MintLocation::NonLocal)) => {
|
||||
Self::can_accrue_checked(checking_account, amount)
|
||||
},
|
||||
None => Ok(()),
|
||||
}
|
||||
}
|
||||
@@ -156,10 +158,12 @@ impl<
|
||||
);
|
||||
if let Some(amount) = Matcher::matches_fungible(what) {
|
||||
match CheckingAccount::get() {
|
||||
Some((checking_account, MintLocation::Local)) =>
|
||||
Self::reduce_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::NonLocal)) =>
|
||||
Self::accrue_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::Local)) => {
|
||||
Self::reduce_checked(checking_account, amount)
|
||||
},
|
||||
Some((checking_account, MintLocation::NonLocal)) => {
|
||||
Self::accrue_checked(checking_account, amount)
|
||||
},
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
@@ -174,10 +178,12 @@ impl<
|
||||
);
|
||||
let amount = Matcher::matches_fungible(what).ok_or(MatchError::AssetNotHandled)?;
|
||||
match CheckingAccount::get() {
|
||||
Some((checking_account, MintLocation::Local)) =>
|
||||
Self::can_accrue_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::NonLocal)) =>
|
||||
Self::can_reduce_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::Local)) => {
|
||||
Self::can_accrue_checked(checking_account, amount)
|
||||
},
|
||||
Some((checking_account, MintLocation::NonLocal)) => {
|
||||
Self::can_reduce_checked(checking_account, amount)
|
||||
},
|
||||
None => Ok(()),
|
||||
}
|
||||
}
|
||||
@@ -191,10 +197,12 @@ impl<
|
||||
);
|
||||
if let Some(amount) = Matcher::matches_fungible(what) {
|
||||
match CheckingAccount::get() {
|
||||
Some((checking_account, MintLocation::Local)) =>
|
||||
Self::accrue_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::NonLocal)) =>
|
||||
Self::reduce_checked(checking_account, amount),
|
||||
Some((checking_account, MintLocation::Local)) => {
|
||||
Self::accrue_checked(checking_account, amount)
|
||||
},
|
||||
Some((checking_account, MintLocation::NonLocal)) => {
|
||||
Self::reduce_checked(checking_account, amount)
|
||||
},
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user