diff --git a/core/src/avm2/globals/array.rs b/core/src/avm2/globals/array.rs index 9bdfb1efc..cc87e9e35 100644 --- a/core/src/avm2/globals/array.rs +++ b/core/src/avm2/globals/array.rs @@ -987,12 +987,7 @@ fn extract_array_values<'gc>( let mut unholey_vec = Vec::with_capacity(holey_vec.length()); for (i, v) in holey_vec.iter().enumerate() { - unholey_vec.push(resolve_array_hole( - activation, - object.unwrap(), - i, - v, - )?); + unholey_vec.push(resolve_array_hole(activation, object.unwrap(), i, v)?); } Ok(Some(unholey_vec)) diff --git a/core/src/avm2/globals/vector.rs b/core/src/avm2/globals/vector.rs index 506fe366b..3337dc905 100644 --- a/core/src/avm2/globals/vector.rs +++ b/core/src/avm2/globals/vector.rs @@ -658,8 +658,7 @@ pub fn map<'gc>( while let Some(r) = iter.next(activation) { let (i, item) = r?; - let new_item = - callback.call(receiver, &[item, i.into(), this.into()], activation)?; + let new_item = callback.call(receiver, &[item, i.into(), this.into()], activation)?; let coerced_item = new_item.coerce_to_type(activation, value_type)?; new_storage.push(coerced_item)?;