Setup global allocator in the correct crate

It worked before, but was roundabout
This commit is contained in:
Aleksey Kladov
2020-07-22 13:42:53 +02:00
parent deed44a472
commit 9ad41eb908
5 changed files with 6 additions and 10 deletions

View File

@@ -16,6 +16,10 @@ use vfs::AbsPathBuf;
use crate::args::HelpPrinted;
#[cfg(all(feature = "mimalloc"))]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
fn main() -> Result<()> {
setup_logging()?;
let args = match args::Args::parse()? {