diff options
Diffstat (limited to 'components/allocator/lib.rs')
-rw-r--r-- | components/allocator/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/allocator/lib.rs b/components/allocator/lib.rs index 963ff5f759b..3ce50be8b22 100644 --- a/components/allocator/lib.rs +++ b/components/allocator/lib.rs @@ -10,9 +10,11 @@ static ALLOC: Allocator = Allocator; pub use crate::platform::*; #[cfg(not(windows))] -mod platform { - extern crate jemalloc_sys as ffi; +pub use jemalloc_sys; +#[cfg(not(windows))] +mod platform { + use jemalloc_sys as ffi; use std::alloc::{GlobalAlloc, Layout}; use std::os::raw::{c_int, c_void}; @@ -96,9 +98,7 @@ mod platform { #[cfg(windows)] mod platform { - extern crate kernel32; - - use self::kernel32::{GetProcessHeap, HeapSize, HeapValidate}; + use kernel32::{GetProcessHeap, HeapSize, HeapValidate}; pub use std::alloc::System as Allocator; use std::os::raw::c_void; |