Skip to content

Commit ed2a6f3

Browse files
committed
fmt
1 parent d2119be commit ed2a6f3

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ pub mod pallet {
2828
use frame_support::{dispatch::DispatchResult, pallet_prelude::StorageMap};
2929
use frame_system::pallet_prelude::*;
3030
use pallet_evm_chain_id::{self, ChainId};
31-
use substrate_fixed::types::I96F32;
3231
use sp_runtime::BoundedVec;
32+
use substrate_fixed::types::I96F32;
3333

3434
/// The main data structure of the module.
3535
#[pallet::pallet]
@@ -1379,7 +1379,7 @@ pub mod pallet {
13791379
Ok(())
13801380
}
13811381

1382-
///
1382+
///
13831383
///
13841384
/// # Arguments
13851385
/// * `origin` - The origin of the call, which must be the root account.
@@ -1393,15 +1393,12 @@ pub mod pallet {
13931393
/// Weight is handled by the `#[pallet::weight]` attribute.
13941394
#[pallet::call_index(63)]
13951395
#[pallet::weight((0, DispatchClass::Operational, Pays::No))]
1396-
pub fn sudo_set_subnet_moving_alpha(
1397-
origin: OriginFor<T>,
1398-
alpha: I96F32,
1399-
) -> DispatchResult {
1396+
pub fn sudo_set_subnet_moving_alpha(origin: OriginFor<T>, alpha: I96F32) -> DispatchResult {
14001397
ensure_root(origin)?;
1401-
let alpha: I96F32 = I96F32::saturating_from_num(alpha);
1398+
let alpha: I96F32 = I96F32::saturating_from_num(alpha);
14021399
pallet_subtensor::SubnetMovingAlpha::<T>::set(alpha);
14031400

1404-
log::debug!("SubnetMovingAlphaSet( alpha: {:?} )", alpha);
1401+
log::debug!("SubnetMovingAlphaSet( alpha: {:?} )", alpha);
14051402
Ok(())
14061403
}
14071404
}

0 commit comments

Comments
 (0)