Skip to content

Commit

Permalink
Clean up cfg line
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Sep 15, 2019
1 parent f550338 commit 9350c85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ use crate::internal::{
};

// We use jemalloc for performance reasons, see https:/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;

Expand Down

0 comments on commit 9350c85

Please sign in to comment.