Move jemalloc to runtime only

This commit is contained in:
William Brown 2021-02-13 16:17:58 +10:00
parent 6c79914395
commit 9bd54dbebe
2 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,7 @@
#![deny(clippy::needless_pass_by_value)]
#![deny(clippy::trivially_copy_pass_by_ref)]
#[cfg(test)]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

View file

@ -8,6 +8,10 @@
#![deny(clippy::needless_pass_by_value)]
#![deny(clippy::trivially_copy_pass_by_ref)]
#[cfg(not(test))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
use users::{get_current_gid, get_current_uid, get_effective_gid, get_effective_uid};
use serde_derive::Deserialize;