From 1af130201092bd77cd4ce37352c0ae6ed5518075 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 29 Jan 2015 19:01:10 +0100 Subject: [PATCH] Use snake case for the local in initialize_global. --- components/script/dom/bindings/utils.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index afa3cbda6e4..2df02a3ed18 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -339,10 +339,11 @@ pub unsafe extern fn throwing_constructor(cx: *mut JSContext, _argc: c_uint, /// Construct and cache the ProtoOrIfaceArray for the given global. /// Fails if the argument is not a DOM global. pub fn initialize_global(global: *mut JSObject) { - let protoArray = box () ([0 as *mut JSObject; PrototypeList::ID::Count as uint]); + let proto_array = box () + ([0 as *mut JSObject; PrototypeList::ID::Count as uint]); unsafe { assert!(((*JS_GetClass(global)).flags & JSCLASS_DOM_GLOBAL) != 0); - let box_ = squirrel_away_unique(protoArray); + let box_ = squirrel_away_unique(proto_array); JS_SetReservedSlot(global, DOM_PROTOTYPE_SLOT, PrivateValue(box_ as *const libc::c_void));