chore: Run rustfmt

This commit is contained in:
unknown 2020-07-28 13:25:32 +02:00 committed by Mike Welsh
parent 890dc0ea13
commit 3a0af11e34
1 changed files with 14 additions and 15 deletions

View File

@ -2,8 +2,8 @@
use crate::avm1::activation::Activation; use crate::avm1::activation::Activation;
use crate::avm1::error::Error; use crate::avm1::error::Error;
use crate::avm1::property::Attribute::*;
use crate::avm1::object::TObject; use crate::avm1::object::TObject;
use crate::avm1::property::Attribute::*;
use crate::avm1::{Object, ScriptObject, UpdateContext, Value}; use crate::avm1::{Object, ScriptObject, UpdateContext, Value};
use gc_arena::MutationContext; use gc_arena::MutationContext;
@ -93,7 +93,6 @@ pub fn broadcast_message<'gc>(
Ok(Value::Undefined) Ok(Value::Undefined)
} }
pub fn initialize<'gc>( pub fn initialize<'gc>(
activation: &mut Activation<'_, 'gc>, activation: &mut Activation<'_, 'gc>,
context: &mut UpdateContext<'_, 'gc, '_>, context: &mut UpdateContext<'_, 'gc, '_>,
@ -110,7 +109,7 @@ pub fn initialize<'gc>(
context.gc_context, context.gc_context,
"_listeners", "_listeners",
Value::Object(listeners.into()), Value::Object(listeners.into()),
DontEnum.into() DontEnum.into(),
); );
if let Some(mut broadcaster_script_obj) = broadcaster.as_script_object() { if let Some(mut broadcaster_script_obj) = broadcaster.as_script_object() {