Skip to content

Commit

Permalink
resolve unused imports if feature flags are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmih committed Dec 18, 2024
1 parent 40cce8c commit 25e2376
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 25e2376

Please sign in to comment.