Move mimalloc allocator init to CLI (#369)

This commit is contained in:
Félix Saparelli 2022-08-03 13:11:00 +00:00
parent 90c601deeb
commit bcba352603
2 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,6 @@ mod args;
mod config;
mod filterer;
#[cfg(target_env = "musl")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
pub async fn run() -> Result<()> {
let mut log_on = false;

View File

@ -1,3 +1,7 @@
#[cfg(target_env = "musl")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[tokio::main]
async fn main() -> miette::Result<()> {
watchexec_cli::run().await