aboutsummaryrefslogtreecommitdiffstats
path: root/components/profile
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-11-01 23:45:06 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-11-06 15:26:02 +0100
commit45f7199eee82c66637ec68287eafa40a651001c4 (patch)
tree8c0802f4ac7b89c2ce4d73063c8f65b9ee5face9 /components/profile
parent86f148fb97601413c0d983f21b760d973ade7a75 (diff)
downloadservo-45f7199eee82c66637ec68287eafa40a651001c4.tar.gz
servo-45f7199eee82c66637ec68287eafa40a651001c4.zip
`cargo fix --edition`
Diffstat (limited to 'components/profile')
-rw-r--r--components/profile/mem.rs2
-rw-r--r--components/profile/time.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/components/profile/mem.rs b/components/profile/mem.rs
index 2f2cda21847..e1354ab1eb4 100644
--- a/components/profile/mem.rs
+++ b/components/profile/mem.rs
@@ -13,7 +13,7 @@ use std::cmp::Ordering;
use std::collections::HashMap;
use std::thread;
use std::time::Instant;
-use time::duration_from_seconds;
+use crate::time::duration_from_seconds;
pub struct Profiler {
/// The port through which messages are received.
diff --git a/components/profile/time.rs b/components/profile/time.rs
index e2d12ad5701..7380ae7de04 100644
--- a/components/profile/time.rs
+++ b/components/profile/time.rs
@@ -4,7 +4,7 @@
//! Timing functions.
-use heartbeats;
+use crate::heartbeats;
use influent::client::{Client, Credentials};
use influent::create_client;
use influent::measurement::{Measurement, Value};
@@ -22,10 +22,10 @@ use std::fs::File;
use std::io::{self, Write};
use std::path::Path;
use std::time::Duration;
-use std_time::precise_time_ns;
+use crate::std_time::precise_time_ns;
+use crate::trace_dump::TraceDump;
use tokio;
use tokio::prelude::Future;
-use trace_dump::TraceDump;
pub trait Formattable {
fn format(&self, output: &Option<OutputOptions>) -> String;