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:
@@ -366,8 +366,8 @@ mod tests {
|
||||
fn normal_extrinsic_limited_by_maximum_extrinsic_weight() {
|
||||
new_test_ext().execute_with(|| {
|
||||
let max = DispatchInfo {
|
||||
call_weight: block_weights().get(DispatchClass::Normal).max_extrinsic.unwrap() +
|
||||
Weight::from_parts(1, 0),
|
||||
call_weight: block_weights().get(DispatchClass::Normal).max_extrinsic.unwrap()
|
||||
+ Weight::from_parts(1, 0),
|
||||
class: DispatchClass::Normal,
|
||||
..Default::default()
|
||||
};
|
||||
@@ -710,9 +710,9 @@ mod tests {
|
||||
.0;
|
||||
assert_eq!(
|
||||
BlockWeight::<Test>::get().total(),
|
||||
info.total_weight() +
|
||||
Weight::from_parts(128, 0) +
|
||||
block_weights().get(DispatchClass::Normal).base_extrinsic,
|
||||
info.total_weight()
|
||||
+ Weight::from_parts(128, 0)
|
||||
+ block_weights().get(DispatchClass::Normal).base_extrinsic,
|
||||
);
|
||||
|
||||
assert_ok!(CheckWeight::<Test>::post_dispatch_details(
|
||||
@@ -724,9 +724,9 @@ mod tests {
|
||||
));
|
||||
assert_eq!(
|
||||
BlockWeight::<Test>::get().total(),
|
||||
info.total_weight() +
|
||||
Weight::from_parts(128, 0) +
|
||||
block_weights().get(DispatchClass::Normal).base_extrinsic,
|
||||
info.total_weight()
|
||||
+ Weight::from_parts(128, 0)
|
||||
+ block_weights().get(DispatchClass::Normal).base_extrinsic,
|
||||
);
|
||||
})
|
||||
}
|
||||
|
||||
@@ -887,8 +887,9 @@ pub mod pezpallet {
|
||||
|
||||
match Self::can_set_code(&code, res.check_version) {
|
||||
CanSetCodeResult::Ok => {},
|
||||
CanSetCodeResult::MultiBlockMigrationsOngoing =>
|
||||
return Err(Error::<T>::MultiBlockMigrationsOngoing.into()),
|
||||
CanSetCodeResult::MultiBlockMigrationsOngoing => {
|
||||
return Err(Error::<T>::MultiBlockMigrationsOngoing.into())
|
||||
},
|
||||
CanSetCodeResult::InvalidVersion(error) => {
|
||||
// The upgrade is invalid and there is no benefit in trying to apply this again.
|
||||
Self::deposit_event(Event::RejectedInvalidAuthorizedUpgrade {
|
||||
@@ -1549,8 +1550,9 @@ impl<T: Config> CanSetCodeResult<T> {
|
||||
pub fn into_result(self) -> Result<(), DispatchError> {
|
||||
match self {
|
||||
Self::Ok => Ok(()),
|
||||
Self::MultiBlockMigrationsOngoing =>
|
||||
Err(Error::<T>::MultiBlockMigrationsOngoing.into()),
|
||||
Self::MultiBlockMigrationsOngoing => {
|
||||
Err(Error::<T>::MultiBlockMigrationsOngoing.into())
|
||||
},
|
||||
Self::InvalidVersion(err) => Err(err.into()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user