diff --git a/servo/components/layout_thread/lib.rs b/servo/components/layout_thread/lib.rs index 96eac55cc5b4..4e407e2146e7 100644 --- a/servo/components/layout_thread/lib.rs +++ b/servo/components/layout_thread/lib.rs @@ -1253,7 +1253,7 @@ impl LayoutThread { (self.layout_threads as u64); time::send_profile_data(time::ProfilerCategory::LayoutTextShaping, self.profiler_metadata(), - self.time_profiler_chan.clone(), + &self.time_profiler_chan, 0, text_shaping_time, 0, diff --git a/servo/components/profile_traits/time.rs b/servo/components/profile_traits/time.rs index 369c2fa366d6..404a2340c2fd 100644 --- a/servo/components/profile_traits/time.rs +++ b/servo/components/profile_traits/time.rs @@ -128,7 +128,7 @@ pub fn profile(category: ProfilerCategory, send_profile_data(category, meta, - profiler_chan, + &profiler_chan, start_time, end_time, start_energy, @@ -138,7 +138,7 @@ pub fn profile(category: ProfilerCategory, pub fn send_profile_data(category: ProfilerCategory, meta: Option, - profiler_chan: ProfilerChan, + profiler_chan: &ProfilerChan, start_time: u64, end_time: u64, start_energy: u64,