Skip to content

Commit 318d8b2

Browse files
jaybosamiya-mstmfink
authored andcommitted
Fix accidentally forced allocator on no_std
1 parent 28096e2 commit 318d8b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capstone-rs/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#[macro_use]
99
extern crate alloc;
1010

11-
#[cfg(any(test, not(feature = "std")))]
11+
#[cfg(all(test, not(feature = "std")))]
1212
#[macro_use]
1313
extern crate std;
1414

15-
#[cfg(any(test, not(feature = "std")))]
15+
#[cfg(all(test, not(feature = "std")))]
1616
#[global_allocator]
1717
static ALLOCATOR: std::alloc::System = std::alloc::System;
1818

0 commit comments

Comments
 (0)