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:
@@ -443,9 +443,9 @@ pub mod pezpallet {
|
||||
fn integrity_test() {
|
||||
/// Calculate the maximum weight that a lookup of a given size can take.
|
||||
fn lookup_weight<T: Config>(s: usize) -> Weight {
|
||||
T::WeightInfo::service_agendas_base() +
|
||||
T::WeightInfo::service_agenda_base(T::MaxScheduledPerBlock::get()) +
|
||||
T::WeightInfo::service_task(Some(s), true, true)
|
||||
T::WeightInfo::service_agendas_base()
|
||||
+ T::WeightInfo::service_agenda_base(T::MaxScheduledPerBlock::get())
|
||||
+ T::WeightInfo::service_task(Some(s), true, true)
|
||||
}
|
||||
|
||||
let limit = pezsp_runtime::Perbill::from_percent(90) * T::MaximumWeight::get();
|
||||
@@ -1408,10 +1408,11 @@ impl<T: Config> Pezpallet<T> {
|
||||
}
|
||||
let wake = now.saturating_add(period);
|
||||
match Self::place_task(wake, task) {
|
||||
Ok(new_address) =>
|
||||
Ok(new_address) => {
|
||||
if let Some(retry_config) = maybe_retry_config {
|
||||
Retries::<T>::insert(new_address, retry_config);
|
||||
},
|
||||
}
|
||||
},
|
||||
Err((_, task)) => {
|
||||
// TODO: Leave task in storage somewhere for it to be rescheduled
|
||||
// manually.
|
||||
@@ -1458,8 +1459,9 @@ impl<T: Config> Pezpallet<T> {
|
||||
let dispatch_origin = origin.into();
|
||||
let (maybe_actual_call_weight, result) = match call.dispatch(dispatch_origin) {
|
||||
Ok(post_info) => (post_info.actual_weight, Ok(())),
|
||||
Err(error_and_info) =>
|
||||
(error_and_info.post_info.actual_weight, Err(error_and_info.error)),
|
||||
Err(error_and_info) => {
|
||||
(error_and_info.post_info.actual_weight, Err(error_and_info.error))
|
||||
},
|
||||
};
|
||||
let call_weight = maybe_actual_call_weight.unwrap_or(call_weight);
|
||||
let _ = weight.try_consume(base_weight);
|
||||
|
||||
Reference in New Issue
Block a user