diff --git a/components/compositing/pipeline.rs b/components/compositing/pipeline.rs index a47bfc7b1b3..7f867309b5a 100644 --- a/components/compositing/pipeline.rs +++ b/components/compositing/pipeline.rs @@ -111,7 +111,7 @@ impl Pipeline { new_pipeline_id: id, subpage_id: subpage_id, load_data: load_data.clone(), - paint_chan: box() (paint_chan.clone()) as Box, + paint_chan: box paint_chan.clone() as Box, failure: failure, pipeline_port: mem::replace(&mut pipeline_port, None).unwrap(), layout_shutdown_chan: layout_shutdown_chan.clone(), diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index d29cc4d0c77..b9a9ad3dbf3 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -381,8 +381,8 @@ pub type ProtoOrIfaceArray = [*mut JSObject; PrototypeList::ID::Count as usize]; /// 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 proto_array: Box = box () - ([0 as *mut JSObject; PrototypeList::ID::Count as usize]); + let proto_array: Box = + box [0 as *mut JSObject; PrototypeList::ID::Count as usize]; unsafe { assert!(((*JS_GetClass(global)).flags & JSCLASS_DOM_GLOBAL) != 0); let box_ = Box::into_raw(proto_array);