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

@ -13,10 +13,6 @@ pub use crate::{
memory_usage::{Bytes, MemoryUsage},
};
#[cfg(all(feature = "mimalloc"))]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
/// Prints backtrace to stderr, useful for debugging.
#[cfg(feature = "backtrace")]
pub fn print_backtrace() {