diff options
author | faineance <faineance@users.noreply.github.com> | 2016-03-27 11:50:08 +0100 |
---|---|---|
committer | faineance <faineance@users.noreply.github.com> | 2016-03-27 11:50:08 +0100 |
commit | 418842faf9135da4b70b12fd8b88bc6b8d504cfc (patch) | |
tree | 64690189fcf218696759273c2c29cc2799db8e25 /components/profile_traits/time.rs | |
parent | 68a8085a2f11d052948145980a0bf8a46471e3a7 (diff) | |
download | servo-418842faf9135da4b70b12fd8b88bc6b8d504cfc.tar.gz servo-418842faf9135da4b70b12fd8b88bc6b8d504cfc.zip |
use self.0 instead of destructing single item tuple structs
Diffstat (limited to 'components/profile_traits/time.rs')
-rw-r--r-- | components/profile_traits/time.rs | 3 |
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(); } } |