Skip to content

Commit 045ab5f

Browse files
authored
simplified code
1 parent 077390f commit 045ab5f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/lib.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ use serde_json::Value;
1313
all(target_os = "linux", target_arch = "x86", not(target_env = "musl"))
1414
))]
1515
use mimalloc::MiMalloc;
16-
#[cfg(any(
17-
not(target_os = "linux"),
18-
all(target_os = "linux", target_env = "musl"),
19-
all(target_os = "linux", target_arch = "x86_64", not(target_env = "musl")),
20-
all(target_os = "linux", target_arch = "x86", not(target_env = "musl"))
21-
))]
2216
#[global_allocator]
2317
static GLOBAL: MiMalloc = MiMalloc;
18+
// #[cfg(any(
19+
// not(target_os = "linux"),
20+
// all(target_os = "linux", target_env = "musl"),
21+
// all(target_os = "linux", target_arch = "x86_64", not(target_env = "musl")),
22+
// all(target_os = "linux", target_arch = "x86", not(target_env = "musl"))
23+
// ))]
24+
// #[global_allocator]
25+
// static GLOBAL: MiMalloc = MiMalloc;
2426

2527
const PYTHON_PACKAGE_VERSION: &str = env!("CARGO_PKG_VERSION");
2628
// JSONPath query result containing found data and path

0 commit comments

Comments
 (0)