aboutsummaryrefslogtreecommitdiffstats
path: root/components/profile_traits/time.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/profile_traits/time.rs')
-rw-r--r--components/profile_traits/time.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/profile_traits/time.rs b/components/profile_traits/time.rs
index 8a673d4db0d..203d2953065 100644
--- a/components/profile_traits/time.rs
+++ b/components/profile_traits/time.rs
@@ -20,8 +20,7 @@ pub struct ProfilerChan(pub IpcSender<ProfilerMsg>);
impl ProfilerChan {
pub fn send(&self, msg: ProfilerMsg) {
- let ProfilerChan(ref c) = *self;
- c.send(msg).unwrap();
+ self.0.send(msg).unwrap();
}
}