Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
NunoAlexandre committed Oct 5, 2023
1 parent 140278a commit 8353c19
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
16 changes: 13 additions & 3 deletions pallets/rewards/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ mod common;
mod currency_movement;

use cfg_traits::rewards::DistributedRewards;
use frame_support::{assert_noop, assert_ok, traits::fungibles::Inspect};
use frame_support::traits::tokens::{Fortitude, Preservation};
use frame_support::{
assert_noop, assert_ok,
traits::{
fungibles::Inspect,
tokens::{Fortitude, Preservation},
},
};

use super::{mock::*, *};

Expand Down Expand Up @@ -32,7 +37,12 @@ enum MechanismKind {
}

fn free_balance(currency_id: CurrencyId, account_id: &u64) -> u64 {
Tokens::reducible_balance(currency_id, account_id, Preservation::Expendable, Fortitude::Polite)
Tokens::reducible_balance(
currency_id,
account_id,
Preservation::Expendable,
Fortitude::Polite,
)
}

fn rewards_account() -> u64 {
Expand Down
7 changes: 3 additions & 4 deletions runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ use frame_support::{
dispatch::DispatchClass,
parameter_types,
traits::{
OnFinalize,
AsEnsureOriginWithArg, ConstU32, Contains, EqualPrivilegeOnly, InstanceFilter,
LockIdentifier, PalletInfoAccess, U128CurrencyToVote, UnixTime, WithdrawReasons,
LockIdentifier, OnFinalize, PalletInfoAccess, U128CurrencyToVote, UnixTime,
WithdrawReasons,
},
weights::{
constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},
Expand All @@ -63,14 +63,13 @@ use pallet_anchors::AnchorData;
pub use pallet_balances::Call as BalancesCall;
use pallet_collective::{EnsureMember, EnsureProportionMoreThan};
use pallet_ethereum::Call::transact;
use pallet_evm::{Account as EVMAccount, FeeCalculator, Runner};
use pallet_evm::{Account as EVMAccount, FeeCalculator, GasWeightMapping, Runner};
use pallet_investments::OrderType;
use pallet_pool_system::{
pool_types::{PoolDetails, ScheduledUpdateDetails},
tranches::{TrancheIndex, TrancheLoc, TrancheSolution},
EpochSolution,
};
use pallet_evm::GasWeightMapping;
use pallet_restricted_tokens::{FungibleInspectPassthrough, FungiblesInspectPassthrough};
pub use pallet_timestamp::Call as TimestampCall;
pub use pallet_transaction_payment::{CurrencyAdapter, Multiplier, TargetedFeeAdjustment};
Expand Down
3 changes: 1 addition & 2 deletions runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ use frame_support::{
parameter_types,
sp_std::marker::PhantomData,
traits::{
OnFinalize,
AsEnsureOriginWithArg, ConstU32, EqualPrivilegeOnly, InstanceFilter, LockIdentifier,
PalletInfoAccess, U128CurrencyToVote, UnixTime, WithdrawReasons,
OnFinalize, PalletInfoAccess, U128CurrencyToVote, UnixTime, WithdrawReasons,
},
weights::{
constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight},
Expand Down
3 changes: 1 addition & 2 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ use frame_support::{
sp_std::marker::PhantomData,
traits::{
AsEnsureOriginWithArg, ConstU32, Contains, EitherOfDiverse, EqualPrivilegeOnly,
InstanceFilter, LockIdentifier, PalletInfoAccess, U128CurrencyToVote, UnixTime,
InstanceFilter, LockIdentifier, OnFinalize, PalletInfoAccess, U128CurrencyToVote, UnixTime,
WithdrawReasons,
},
weights::{
Expand Down Expand Up @@ -113,7 +113,6 @@ use sp_version::NativeVersion;
use sp_version::RuntimeVersion;
use static_assertions::const_assert;
use xcm_executor::XcmExecutor;
use frame_support::traits::OnFinalize;

pub mod evm;
mod weights;
Expand Down

0 comments on commit 8353c19

Please sign in to comment.