From 9350c8544d2e229e462936a5a1c5d3c1cac01df3 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 15 Sep 2019 18:30:13 +0200 Subject: [PATCH] Clean up cfg line --- Cargo.toml | 2 +- src/main.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c5d441c..2e6408c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ features = ["suggestions", "color", "wrap_help"] [target.'cfg(all(unix, not(target_os = "redox")))'.dependencies] libc = "0.2" -[target.'cfg(all(unix, not(target_os = "redox"), not(target_env = "musl")))'.dependencies] +[target.'cfg(all(not(windows), not(target_env = "musl")))'.dependencies] jemallocator = "0.3.0" [dev-dependencies] diff --git a/src/main.rs b/src/main.rs index 29fb37b..426eb08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,8 +36,7 @@ use crate::internal::{ }; // We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/481 -#[cfg(not(windows))] -#[cfg(not(target_env = "musl"))] +#[cfg(all(not(windows), not(target_env = "musl")))] #[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;