Skip to content

Commit

Permalink
chore: resolve unused imports if feature flags are disabled (#5097)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmih authored Jan 13, 2025
1 parent 7316988 commit 99c877d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/cli_shared/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ use crate::networks::NetworkChain;
use crate::utils::io::read_toml;
use std::path::PathBuf;

#[cfg(feature = "mimalloc")]
pub use mimalloc;
#[cfg(feature = "jemalloc")]
pub use tikv_jemallocator;
cfg_if::cfg_if! {
if #[cfg(feature = "rustalloc")] {
} else if #[cfg(feature = "mimalloc")] {
pub use mimalloc;
} else if #[cfg(feature = "jemalloc")] {
pub use tikv_jemallocator;
}
}

/// Gets chain data directory
pub fn chain_path(config: &Config) -> PathBuf {
Expand Down

0 comments on commit 99c877d

Please sign in to comment.