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:
@@ -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