diff options
author | Matthew Rasmus <mattr@zzntd.com> | 2015-01-07 19:07:27 -0800 |
---|---|---|
committer | Matthew Rasmus <mattr@zzntd.com> | 2015-01-08 08:51:11 -0800 |
commit | dc721199985feaf94d23af3e7c5ab2a12e15bcbe (patch) | |
tree | 62111fce4d1cb4dac19ee085f23aeeb67bf526a4 /components/util/tid.rs | |
parent | 01d4739d168aaa8c3b1ec4b4e6f1ab99a0596251 (diff) | |
download | servo-dc721199985feaf94d23af3e7c5ab2a12e15bcbe.tar.gz servo-dc721199985feaf94d23af3e7c5ab2a12e15bcbe.zip |
Fix `non_upper_case_globals` warnings
Diffstat (limited to 'components/util/tid.rs')
-rw-r--r-- | components/util/tid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/tid.rs b/components/util/tid.rs index a1e24147019..5cea4fe0d43 100644 --- a/components/util/tid.rs +++ b/components/util/tid.rs @@ -8,11 +8,11 @@ use std::cell::RefCell; static mut next_tid: AtomicUint = INIT_ATOMIC_UINT; -thread_local!(static task_local_tid: Rc<RefCell<Option<uint>>> = Rc::new(RefCell::new(None))) +thread_local!(static TASK_LOCAL_TID: Rc<RefCell<Option<uint>>> = Rc::new(RefCell::new(None))) /// Every task gets one, that's unique. pub fn tid() -> uint { - task_local_tid.with(|ref k| { + TASK_LOCAL_TID.with(|ref k| { let ret = match *k.borrow() { None => unsafe { next_tid.fetch_add(1, SeqCst) }, |