Skip to content

Commit 901fe01

Browse files
committed
fix(levm): unused import warning (#2735)
**Motivation** There is a variable being unconditionally imported that is only used in code under the `l2` feature. This causes an annoying unused import warning every time we compile the node. This PR fixes it by moving the import to the feature-gated import statement <!-- Why does this pull request exist? What are its goals? --> **Description** * Move import only used under l2 feature to l2 feature-gated import statement <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves #111, Resolves #222 --> Closes: None, fixes my sanity
1 parent 8a5b1f8 commit 901fe01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/vm/levm/src/vm.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ use bytes::Bytes;
1616
use ethrex_common::{
1717
types::{
1818
tx_fields::{AccessList, AuthorizationList},
19-
BlockHeader, ChainConfig, Fork, ForkBlobSchedule, PrivilegedL2Transaction, Transaction,
20-
TxKind,
19+
BlockHeader, ChainConfig, Fork, ForkBlobSchedule, Transaction, TxKind,
2120
},
2221
Address, H256, U256,
2322
};
@@ -30,7 +29,7 @@ use std::{
3029
#[cfg(not(feature = "l2"))]
3130
use crate::hooks::DefaultHook;
3231
#[cfg(feature = "l2")]
33-
use crate::hooks::L2Hook;
32+
use {crate::hooks::L2Hook, ethrex_common::types::PrivilegedL2Transaction};
3433

3534
pub type Storage = HashMap<U256, H256>;
3635

0 commit comments

Comments
 (0)