Improve formatting in closeevent.rs.

This commit is contained in:
Ms2ger 2015-05-06 11:19:33 +02:00
parent 16a7c792b5
commit 31ebfff9bc

View file

@ -13,10 +13,11 @@ use dom::bindings::js::{JSRef,Temporary, Rootable};
use dom::bindings::utils::reflect_dom_object;
use dom::event::{Event, EventTypeId, EventBubbles, EventCancelable};
use script_task::ScriptChan;
use std::borrow::ToOwned;
use std::cell::Cell;
use util::str::DOMString;
use std::borrow::ToOwned;
use std::cell::Cell;
#[dom_struct]
pub struct CloseEvent {
@ -60,7 +61,8 @@ impl CloseEvent{
pub fn Constructor(global: GlobalRef,
type_: DOMString,
init: &CloseEventBinding::CloseEventInit) -> Fallible<Temporary<CloseEvent>> {
init: &CloseEventBinding::CloseEventInit)
-> Fallible<Temporary<CloseEvent>> {
let clean_status = init.wasClean.unwrap_or(true);
let cd = init.code.unwrap_or(0);
let rsn = match init.reason.as_ref() {