Skip to content

Commit 81a240b

Browse files
committed
style: fix formatting to satisfy cargo fmt
1 parent dd5b469 commit 81a240b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

bin/trin-execution/src/storage/trie_db.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::sync::Arc;
22

33
use eth_trie::DB;
4-
54
use redb::{Database as ReDB, TableDefinition};
65

76
// Define a table type: key and value are byte arrays

bin/trin-execution/src/subcommands/e2ss/export.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ use crate::{
2222
config::StateConfig,
2323
era::manager::EraManager,
2424
storage::{
25-
account_db::AccountDB, evm_db::EvmDB, execution_position::ExecutionPosition,
25+
account_db::AccountDB,
26+
evm_db::{EvmDB, CONTRACTS_TABLE},
27+
execution_position::ExecutionPosition,
2628
utils::setup_redb,
2729
},
2830
subcommands::e2ss::utils::percentage_from_address_hash,
2931
};
3032

31-
use crate::storage::evm_db::CONTRACTS_TABLE;
32-
3333
pub struct StateExporter {
3434
config: ExportStateConfig,
3535
header: Header,

bin/trin-execution/src/subcommands/e2ss/import.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ use crate::{
1313
era::manager::EraManager,
1414
evm::block_executor::BLOCKHASH_SERVE_WINDOW,
1515
storage::{
16-
account_db::AccountDB, evm_db::EvmDB, execution_position::ExecutionPosition,
16+
account_db::AccountDB,
17+
evm_db::{EvmDB, ACCOUNTS_TABLE, BLOCK_HASHES_TABLE, CONTRACTS_TABLE},
18+
execution_position::ExecutionPosition,
1719
utils::setup_redb,
1820
},
1921
subcommands::e2ss::utils::percentage_from_address_hash,
2022
};
2123

22-
use crate::storage::evm_db::{ACCOUNTS_TABLE, BLOCK_HASHES_TABLE, CONTRACTS_TABLE};
23-
2424
pub struct StateImporter {
2525
config: ImportStateConfig,
2626
evm_db: EvmDB,

0 commit comments

Comments
 (0)