Skip to content

Commit 63794a4

Browse files
authored
chore(anvil): use cfg(feature = "cmd") instead of allow(dead_code) for parse (#12425)
1 parent d693f64 commit 63794a4

File tree

1 file changed

+1
-1
lines changed
  • crates/anvil/src/eth/backend

1 file changed

+1
-1
lines changed

crates/anvil/src/eth/backend/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl SerializableState {
514514
}
515515

516516
/// This is used as the clap `value_parser` implementation
517-
#[allow(dead_code)]
517+
#[cfg(feature = "cmd")]
518518
pub(crate) fn parse(path: &str) -> Result<Self, String> {
519519
Self::load(path).map_err(|err| err.to_string())
520520
}

0 commit comments

Comments
 (0)