From 89d4ee88f490b7f3479a5f3adc4473ec27731978 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 10 Jun 2015 00:14:21 +0530 Subject: [PATCH] Audit and reduce unstable usage in profile Reasons behind existing unstable features: collections: - `[T].tail()` (naming) - Could use iterators instead --- components/profile/lib.rs | 1 - components/profile/time.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/profile/lib.rs b/components/profile/lib.rs index 93665b440f9..22d7aa22224 100644 --- a/components/profile/lib.rs +++ b/components/profile/lib.rs @@ -9,7 +9,6 @@ #[macro_use] extern crate log; -extern crate collections; extern crate libc; #[macro_use] extern crate profile_traits; diff --git a/components/profile/time.rs b/components/profile/time.rs index 464796006fa..133b48c09c1 100644 --- a/components/profile/time.rs +++ b/components/profile/time.rs @@ -4,10 +4,10 @@ //! Timing functions. -use collections::BTreeMap; use profile_traits::time::{ProfilerCategory, ProfilerChan, ProfilerMsg, TimerMetadata}; use std::borrow::ToOwned; use std::cmp::Ordering; +use std::collections::BTreeMap; use std::f64; use std::sync::mpsc::{channel, Receiver}; use std::thread::sleep_ms;