Skip to content

Commit 8994c41

Browse files
committed
cargo +nightly fmt
1 parent 12ab174 commit 8994c41

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

runtime/src/lib.rs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ extern crate alloc;
1717

1818
use codec::{Compact, Decode, Encode};
1919
use frame_support::{
20+
PalletId,
2021
dispatch::{DispatchResult, DispatchResultWithPostInfo},
2122
genesis_builder_helper::{build_state, get_preset},
2223
pallet_prelude::Get,
23-
traits::{fungible::HoldConsideration, Contains, InsideBoth, LinearStoragePrice},
24-
PalletId,
24+
traits::{Contains, InsideBoth, LinearStoragePrice, fungible::HoldConsideration},
2525
};
2626
use frame_system::{EnsureNever, EnsureRoot, EnsureRootWithSuccess, RawOrigin};
2727
use pallet_collective_otf as pallet_collective;
2828
use pallet_commitments::{CanCommit, OnMetadataCommitment};
29-
use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId};
29+
use pallet_grandpa::{AuthorityId as GrandpaId, fg_primitives};
3030
use pallet_proxy_otf as pallet_proxy;
3131
use pallet_registry::CanRegisterIdentity;
3232
use pallet_subtensor::rpc_info::{
@@ -44,44 +44,42 @@ use sp_consensus_aura::sr25519::AuthorityId as AuraId;
4444
use sp_consensus_babe::BabeConfiguration;
4545
use sp_consensus_babe::BabeEpochConfiguration;
4646
use sp_core::{
47+
H160, H256, OpaqueMetadata, U256,
4748
crypto::{ByteArray, KeyTypeId},
48-
OpaqueMetadata, H160, H256, U256,
4949
};
50+
use sp_runtime::Cow;
5051
use sp_runtime::generic::Era;
5152
use sp_runtime::traits::NumberFor;
52-
use sp_runtime::Cow;
5353
use sp_runtime::{
54-
generic, impl_opaque_keys,
54+
AccountId32, ApplyExtrinsicResult, ConsensusEngineId, generic, impl_opaque_keys,
5555
traits::{
5656
AccountIdLookup, BlakeTwo256, Block as BlockT, DispatchInfoOf, Dispatchable, One,
5757
PostDispatchInfoOf, UniqueSaturatedInto, Verify,
5858
},
5959
transaction_validity::{TransactionSource, TransactionValidity, TransactionValidityError},
60-
AccountId32, ApplyExtrinsicResult, ConsensusEngineId,
6160
};
6261
use sp_std::cmp::Ordering;
6362
use sp_std::prelude::*;
6463
#[cfg(feature = "std")]
6564
use sp_version::NativeVersion;
6665
use sp_version::RuntimeVersion;
6766
use subtensor_precompiles::Precompiles;
68-
use subtensor_runtime_common::{time::*, AlphaCurrency, TaoCurrency, *};
67+
use subtensor_runtime_common::{AlphaCurrency, TaoCurrency, time::*, *};
6968

7069
// A few exports that help ease life for downstream crates.
7170
pub use frame_support::{
72-
construct_runtime, parameter_types,
71+
StorageValue, construct_runtime, parameter_types,
7372
traits::{
74-
ConstBool, ConstU128, ConstU32, ConstU64, ConstU8, FindAuthor, InstanceFilter,
73+
ConstBool, ConstU8, ConstU32, ConstU64, ConstU128, FindAuthor, InstanceFilter,
7574
KeyOwnerProofSystem, OnFinalize, OnTimestampSet, PrivilegeCmp, Randomness, StorageInfo,
7675
},
7776
weights::{
77+
IdentityFee, Weight, WeightToFeeCoefficient, WeightToFeeCoefficients,
78+
WeightToFeePolynomial,
7879
constants::{
7980
BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND,
8081
},
81-
IdentityFee, Weight, WeightToFeeCoefficient, WeightToFeeCoefficients,
82-
WeightToFeePolynomial,
8382
},
84-
StorageValue,
8583
};
8684
pub use frame_system::Call as SystemCall;
8785
pub use pallet_balances::Call as BalancesCall;

0 commit comments

Comments
 (0)