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:
@@ -129,9 +129,9 @@ fn default_teyrchains_host_configuration(
|
||||
allowed_ancestry_len: 0,
|
||||
},
|
||||
node_features: bitvec::vec::BitVec::from_element(
|
||||
(1u8 << (FeatureIndex::ElasticScalingMVP as usize)) |
|
||||
(1u8 << (FeatureIndex::EnableAssignmentsV2 as usize)) |
|
||||
(1u8 << (FeatureIndex::CandidateReceiptV2 as usize)),
|
||||
(1u8 << (FeatureIndex::ElasticScalingMVP as usize))
|
||||
| (1u8 << (FeatureIndex::EnableAssignmentsV2 as usize))
|
||||
| (1u8 << (FeatureIndex::CandidateReceiptV2 as usize)),
|
||||
),
|
||||
scheduler_params: SchedulerParams {
|
||||
lookahead: 3,
|
||||
|
||||
@@ -1384,33 +1384,33 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
|
||||
ProxyType::Governance => matches!(
|
||||
c,
|
||||
// OpenGov calls
|
||||
RuntimeCall::ConvictionVoting(..) |
|
||||
RuntimeCall::Referenda(..) |
|
||||
RuntimeCall::Whitelist(..)
|
||||
RuntimeCall::ConvictionVoting(..)
|
||||
| RuntimeCall::Referenda(..)
|
||||
| RuntimeCall::Whitelist(..)
|
||||
),
|
||||
ProxyType::IdentityJudgement => matches!(
|
||||
c,
|
||||
RuntimeCall::Identity(pezpallet_identity::Call::provide_judgement { .. }) |
|
||||
RuntimeCall::Utility(..)
|
||||
RuntimeCall::Identity(pezpallet_identity::Call::provide_judgement { .. })
|
||||
| RuntimeCall::Utility(..)
|
||||
),
|
||||
ProxyType::CancelProxy => {
|
||||
matches!(c, RuntimeCall::Proxy(pezpallet_proxy::Call::reject_announcement { .. }))
|
||||
},
|
||||
ProxyType::Auction => matches!(
|
||||
c,
|
||||
RuntimeCall::Auctions(..) |
|
||||
RuntimeCall::Crowdloan(..) |
|
||||
RuntimeCall::Registrar(..) |
|
||||
RuntimeCall::Slots(..)
|
||||
RuntimeCall::Auctions(..)
|
||||
| RuntimeCall::Crowdloan(..)
|
||||
| RuntimeCall::Registrar(..)
|
||||
| RuntimeCall::Slots(..)
|
||||
),
|
||||
ProxyType::ParaRegistration => matches!(
|
||||
c,
|
||||
RuntimeCall::Registrar(paras_registrar::Call::reserve { .. }) |
|
||||
RuntimeCall::Registrar(paras_registrar::Call::register { .. }) |
|
||||
RuntimeCall::Utility(pezpallet_utility::Call::batch { .. }) |
|
||||
RuntimeCall::Utility(pezpallet_utility::Call::batch_all { .. }) |
|
||||
RuntimeCall::Utility(pezpallet_utility::Call::force_batch { .. }) |
|
||||
RuntimeCall::Proxy(pezpallet_proxy::Call::remove_proxy { .. })
|
||||
RuntimeCall::Registrar(paras_registrar::Call::reserve { .. })
|
||||
| RuntimeCall::Registrar(paras_registrar::Call::register { .. })
|
||||
| RuntimeCall::Utility(pezpallet_utility::Call::batch { .. })
|
||||
| RuntimeCall::Utility(pezpallet_utility::Call::batch_all { .. })
|
||||
| RuntimeCall::Utility(pezpallet_utility::Call::force_batch { .. })
|
||||
| RuntimeCall::Proxy(pezpallet_proxy::Call::remove_proxy { .. })
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,8 +41,9 @@ pub enum AssetTypes {
|
||||
impl From<&Asset> for AssetTypes {
|
||||
fn from(asset: &Asset) -> Self {
|
||||
match asset {
|
||||
Asset { id: AssetId(Location { parents: 0, interior: Here }), .. } =>
|
||||
AssetTypes::Balances,
|
||||
Asset { id: AssetId(Location { parents: 0, interior: Here }), .. } => {
|
||||
AssetTypes::Balances
|
||||
},
|
||||
_ => AssetTypes::Unknown,
|
||||
}
|
||||
}
|
||||
@@ -70,8 +71,9 @@ impl WeighAssets for AssetFilter {
|
||||
// We don't support any NFTs on Zagros, so these two variants will always match
|
||||
// only 1 kind of fungible asset.
|
||||
Self::Wild(AllOf { .. } | AllOfCounted { .. }) => balances_weight,
|
||||
Self::Wild(AllCounted(count)) =>
|
||||
balances_weight.saturating_mul(MAX_ASSETS.min(*count as u64)),
|
||||
Self::Wild(AllCounted(count)) => {
|
||||
balances_weight.saturating_mul(MAX_ASSETS.min(*count as u64))
|
||||
},
|
||||
Self::Wild(All) => balances_weight.saturating_mul(MAX_ASSETS),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user