Skip to content

Commit

Permalink
style: Format rust files
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed May 13, 2024
1 parent 6fdf0b2 commit c89ff2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
11 changes: 5 additions & 6 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
use std::{sync::Arc, time::Duration};

use cumulus_client_cli::CollatorOptions;
// Local Runtime Types
use polka_storage_runtime::{
apis::RuntimeApi,
opaque::{Block, Hash},
};

// Cumulus Imports
use cumulus_client_collator::service::CollatorService;
use cumulus_client_consensus_common::ParachainBlockImport as TParachainBlockImport;
Expand All @@ -28,6 +22,11 @@ use polka_storage_runtime::{
apis::RuntimeApi,
opaque::{Block, Hash},
};
// Local Runtime Types
use polka_storage_runtime::{
apis::RuntimeApi,
opaque::{Block, Hash},
};
use sc_client_api::Backend;
use sc_consensus::ImportQueue;
use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
Expand Down
4 changes: 0 additions & 4 deletions runtime/src/configs/xcm_config.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
use crate::{
AccountId, AllPalletsWithSystem, Balances, ParachainInfo, ParachainSystem, PolkadotXcm,
Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, WeightToFee, XcmpQueue,
};
use frame_support::{
parameter_types,
traits::{ConstU32, Contains, Everything, Nothing},
Expand Down
3 changes: 2 additions & 1 deletion runtime/src/weights/paritydb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ pub mod constants {

#[cfg(test)]
mod test_db_weights {
use super::constants::ParityDbWeight as W;
use frame_support::weights::constants;

use super::constants::ParityDbWeight as W;

/// Checks that all weights exist and have sane values.
// NOTE: If this test fails but you are sure that the generated values are fine,
// you can delete it.
Expand Down
3 changes: 2 additions & 1 deletion runtime/src/weights/rocksdb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ pub mod constants {

#[cfg(test)]
mod test_db_weights {
use super::constants::RocksDbWeight as W;
use frame_support::weights::constants;

use super::constants::RocksDbWeight as W;

/// Checks that all weights exist and have sane values.
// NOTE: If this test fails but you are sure that the generated values are fine,
// you can delete it.
Expand Down

0 comments on commit c89ff2b

Please sign in to comment.