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:
@@ -148,13 +148,14 @@ where
|
||||
build()
|
||||
},
|
||||
OccupiedCoreAssumption::TimedOut => build(),
|
||||
OccupiedCoreAssumption::Free =>
|
||||
OccupiedCoreAssumption::Free => {
|
||||
if !<inclusion::Pezpallet<Config>>::candidates_pending_availability(para_id).is_empty()
|
||||
{
|
||||
None
|
||||
} else {
|
||||
build()
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -296,12 +297,15 @@ where
|
||||
.filter_map(|record| extract_event(record.event))
|
||||
.filter_map(|event| {
|
||||
Some(match event {
|
||||
RawEvent::<T>::CandidateBacked(c, h, core, group) =>
|
||||
CandidateEvent::CandidateBacked(c, h, core, group),
|
||||
RawEvent::<T>::CandidateIncluded(c, h, core, group) =>
|
||||
CandidateEvent::CandidateIncluded(c, h, core, group),
|
||||
RawEvent::<T>::CandidateTimedOut(c, h, core) =>
|
||||
CandidateEvent::CandidateTimedOut(c, h, core),
|
||||
RawEvent::<T>::CandidateBacked(c, h, core, group) => {
|
||||
CandidateEvent::CandidateBacked(c, h, core, group)
|
||||
},
|
||||
RawEvent::<T>::CandidateIncluded(c, h, core, group) => {
|
||||
CandidateEvent::CandidateIncluded(c, h, core, group)
|
||||
},
|
||||
RawEvent::<T>::CandidateTimedOut(c, h, core) => {
|
||||
CandidateEvent::CandidateTimedOut(c, h, core)
|
||||
},
|
||||
// Not needed for candidate events.
|
||||
RawEvent::<T>::UpwardMessagesReceived { .. } => return None,
|
||||
RawEvent::<T>::__Ignore(_, _) => unreachable!("__Ignore cannot be used"),
|
||||
@@ -432,8 +436,8 @@ pub fn backing_constraints<T: initializer::Config>(
|
||||
|
||||
// Use the right storage depending on version to ensure #64 doesn't cause issues with this
|
||||
// migration.
|
||||
let min_relay_parent_number = if shared::Pezpallet::<T>::on_chain_storage_version() ==
|
||||
StorageVersion::new(0)
|
||||
let min_relay_parent_number = if shared::Pezpallet::<T>::on_chain_storage_version()
|
||||
== StorageVersion::new(0)
|
||||
{
|
||||
shared::migration::v0::AllowedRelayParents::<T>::get().hypothetical_earliest_block_number(
|
||||
now,
|
||||
@@ -577,8 +581,8 @@ pub fn candidates_pending_availability<T: initializer::Config>(
|
||||
|
||||
/// Implementation for `validation_code_bomb_limit` function from the runtime API
|
||||
pub fn validation_code_bomb_limit<T: initializer::Config>() -> u32 {
|
||||
configuration::ActiveConfig::<T>::get().max_code_size *
|
||||
configuration::MAX_VALIDATION_CODE_COMPRESSION_RATIO
|
||||
configuration::ActiveConfig::<T>::get().max_code_size
|
||||
* configuration::MAX_VALIDATION_CODE_COMPRESSION_RATIO
|
||||
}
|
||||
|
||||
/// Implementation for `scheduling_lookahead` function from the runtime API
|
||||
|
||||
Reference in New Issue
Block a user