From 418842faf9135da4b70b12fd8b88bc6b8d504cfc Mon Sep 17 00:00:00 2001 From: faineance Date: Sun, 27 Mar 2016 11:50:08 +0100 Subject: use self.0 instead of destructing single item tuple structs --- components/profile_traits/time.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'components/profile_traits/time.rs') 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); impl ProfilerChan { pub fn send(&self, msg: ProfilerMsg) { - let ProfilerChan(ref c) = *self; - c.send(msg).unwrap(); + self.0.send(msg).unwrap(); } } -- cgit v1.2.3