Setup global allocator in the correct crate
It worked before, but was roundabout
This commit is contained in:
@@ -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()? {
|
||||
|
||||
Reference in New Issue
Block a user