aboutsummaryrefslogtreecommitdiffstats
path: root/components/allocator/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-11-01 21:43:04 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-11-08 09:28:00 +0100
commit2012be4a8bd97f2fd69f986c8fffb1af1eec21dc (patch)
treec9f1ef91146253f72987cb1436866523880965e0 /components/allocator/lib.rs
parentb1fd6237d1304f3d57abdafd3e6e738c1ece9f83 (diff)
downloadservo-2012be4a8bd97f2fd69f986c8fffb1af1eec21dc.tar.gz
servo-2012be4a8bd97f2fd69f986c8fffb1af1eec21dc.zip
`cargo fix --edition-idioms`
Diffstat (limited to 'components/allocator/lib.rs')
-rw-r--r--components/allocator/lib.rs10
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;