aboutsummaryrefslogtreecommitdiffstats
path: root/components/profile_traits
diff options
context:
space:
mode:
Diffstat (limited to 'components/profile_traits')
-rw-r--r--components/profile_traits/lib.rs5
-rw-r--r--components/profile_traits/time.rs4
2 files changed, 1 insertions, 8 deletions
diff --git a/components/profile_traits/lib.rs b/components/profile_traits/lib.rs
index 017d35b24c1..cf7034d5962 100644
--- a/components/profile_traits/lib.rs
+++ b/components/profile_traits/lib.rs
@@ -8,15 +8,10 @@
#![deny(unsafe_code)]
-extern crate bincode;
-extern crate ipc_channel;
#[macro_use]
extern crate log;
#[macro_use]
extern crate serde;
-extern crate servo_channel;
-extern crate servo_config;
-extern crate signpost;
#[allow(unsafe_code)]
pub mod energy;
diff --git a/components/profile_traits/time.rs b/components/profile_traits/time.rs
index 010bb009682..fe819a6cee8 100644
--- a/components/profile_traits/time.rs
+++ b/components/profile_traits/time.rs
@@ -2,13 +2,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-extern crate time as std_time;
-
-use self::std_time::precise_time_ns;
use crate::energy::read_energy_uj;
use ipc_channel::ipc::IpcSender;
use servo_config::opts;
use signpost;
+use time::precise_time_ns;
#[derive(Clone, Debug, Deserialize, Eq, Ord, PartialEq, PartialOrd, Serialize)]
pub struct TimerMetadata {