Skip to content

Commit de7ab8a

Browse files
committed
Make jemallocator no_std
1 parent 9a56412 commit de7ab8a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
1818
#![feature(allocator_api, nonnull_cast)]
1919
#![deny(missing_docs)]
20+
#![no_std]
2021

2122
extern crate jemalloc_sys;
2223
extern crate libc;
2324

24-
use std::mem;
25-
use std::ptr::{self, NonNull};
26-
use std::heap::{GlobalAlloc, Alloc, Layout, Opaque, Excess, CannotReallocInPlace, AllocErr};
25+
use core::mem;
26+
use core::ptr::{self, NonNull};
27+
use core::heap::{GlobalAlloc, Alloc, Layout, Opaque, Excess, CannotReallocInPlace, AllocErr};
2728

2829
use libc::{c_int, c_void};
2930

0 commit comments

Comments
 (0)