Skip to content

Commit

Permalink
fix rust code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Jan 15, 2025
1 parent 99d2fc0 commit 9427412
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion runtime/moonbase/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2976,8 +2976,8 @@ fn validate_transaction_fails_on_filtered_call() {

#[cfg(test)]
mod treasury_tests {
use sp_runtime::traits::Hash;
use super::*;
use sp_runtime::traits::Hash;

fn expect_events(events: Vec<RuntimeEvent>) {
let block_events: Vec<RuntimeEvent> =
Expand Down
10 changes: 5 additions & 5 deletions runtime/moonbeam/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ use frame_support::{
assert_noop, assert_ok,
dispatch::DispatchClass,
traits::{
fungible::Inspect, Currency as CurrencyT, EnsureOrigin, OnInitialize, PalletInfo, StorageInfo,
StorageInfoTrait,
fungible::Inspect, Currency as CurrencyT, EnsureOrigin, OnInitialize, PalletInfo,
StorageInfo, StorageInfoTrait,
},
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
StorageHasher, Twox128,
Expand All @@ -40,8 +40,8 @@ use moonbeam_runtime::{
xcm_config::{CurrencyId, SelfReserve},
AccountId, Balances, CrowdloanRewards, Executive, OpenTechCommitteeCollective,
ParachainStaking, PolkadotXcm, Precompiles, Runtime, RuntimeBlockWeights, RuntimeCall,
RuntimeEvent, System, TransactionPayment, TransactionPaymentAsGasPrice,
TreasuryCouncilCollective, XcmTransactor, Treasury, FOREIGN_ASSET_PRECOMPILE_ADDRESS_PREFIX, WEEKS,
RuntimeEvent, System, TransactionPayment, TransactionPaymentAsGasPrice, Treasury,
TreasuryCouncilCollective, XcmTransactor, FOREIGN_ASSET_PRECOMPILE_ADDRESS_PREFIX, WEEKS,
};
use moonbeam_xcm_benchmarks::weights::XcmWeight;
use moonkit_xcm_primitives::AccountIdAssetIdConversion;
Expand Down Expand Up @@ -2767,8 +2767,8 @@ fn evm_success_keeps_substrate_events() {

#[cfg(test)]
mod treasury_tests {
use sp_runtime::traits::Hash;
use super::*;
use sp_runtime::traits::Hash;

fn expect_events(events: Vec<RuntimeEvent>) {
let block_events: Vec<RuntimeEvent> =
Expand Down
11 changes: 7 additions & 4 deletions runtime/moonriver/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ use frame_support::traits::fungible::Inspect;
use frame_support::{
assert_noop, assert_ok,
dispatch::DispatchClass,
traits::{Currency as CurrencyT, EnsureOrigin, PalletInfo, OnInitialize, StorageInfo, StorageInfoTrait},
traits::{
Currency as CurrencyT, EnsureOrigin, OnInitialize, PalletInfo, StorageInfo,
StorageInfoTrait,
},
weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight},
StorageHasher, Twox128,
};
Expand All @@ -38,8 +41,8 @@ use moonriver_runtime::{
asset_config::ForeignAssetInstance,
xcm_config::{CurrencyId, SelfReserve},
AssetId, Balances, CrowdloanRewards, Executive, OpenTechCommitteeCollective, PolkadotXcm,
Precompiles, RuntimeBlockWeights, TransactionPayment, TransactionPaymentAsGasPrice,
TreasuryCouncilCollective, XcmTransactor, Treasury, FOREIGN_ASSET_PRECOMPILE_ADDRESS_PREFIX, WEEKS,
Precompiles, RuntimeBlockWeights, TransactionPayment, TransactionPaymentAsGasPrice, Treasury,
TreasuryCouncilCollective, XcmTransactor, FOREIGN_ASSET_PRECOMPILE_ADDRESS_PREFIX, WEEKS,
};
use nimbus_primitives::NimbusId;
use pallet_evm::PrecompileSet;
Expand Down Expand Up @@ -2665,8 +2668,8 @@ fn evm_success_keeps_substrate_events() {

#[cfg(test)]
mod treasury_tests {
use sp_runtime::traits::Hash;
use super::*;
use sp_runtime::traits::Hash;

fn expect_events(events: Vec<RuntimeEvent>) {
let block_events: Vec<RuntimeEvent> =
Expand Down

0 comments on commit 9427412

Please sign in to comment.