aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorMatthew Rasmus <mattr@zzntd.com>2015-01-07 19:07:27 -0800
committerMatthew Rasmus <mattr@zzntd.com>2015-01-08 08:51:11 -0800
commitdc721199985feaf94d23af3e7c5ab2a12e15bcbe (patch)
tree62111fce4d1cb4dac19ee085f23aeeb67bf526a4 /components/layout/context.rs
parent01d4739d168aaa8c3b1ec4b4e6f1ab99a0596251 (diff)
downloadservo-dc721199985feaf94d23af3e7c5ab2a12e15bcbe.tar.gz
servo-dc721199985feaf94d23af3e7c5ab2a12e15bcbe.zip
Fix `non_upper_case_globals` warnings
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 7a5b0454ab8..dd88741aed5 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -28,10 +28,10 @@ struct LocalLayoutContext {
style_sharing_candidate_cache: StyleSharingCandidateCache,
}
-thread_local!(static local_context_key: Cell<*mut LocalLayoutContext> = Cell::new(ptr::null_mut()))
+thread_local!(static LOCAL_CONTEXT_KEY: Cell<*mut LocalLayoutContext> = Cell::new(ptr::null_mut()))
fn create_or_get_local_context(shared_layout_context: &SharedLayoutContext) -> *mut LocalLayoutContext {
- local_context_key.with(|ref r| {
+ LOCAL_CONTEXT_KEY.with(|ref r| {
if r.get().is_null() {
let context = box LocalLayoutContext {
font_context: FontContext::new(shared_layout_context.font_cache_task.clone()),